Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
using System.Threading;
namespace ConsoleApplication
{
internal class Program
{
public static void Main(string[] args)
{
var t = new Timer(new TimerCallback(_ => { }), null, 1, 1);
t.Dispose();
t.Change(1, 1); //and other methods
//.NET: ObjectDisposedException is thrown
//Mono: no exception
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.