Skip to content

Instantly share code, notes, and snippets.

@EgorBo
Created October 6, 2017 16:00
Show Gist options
  • Save EgorBo/d46f4bc7646a30104c24e3eb14588daf to your computer and use it in GitHub Desktop.
Save EgorBo/d46f4bc7646a30104c24e3eb14588daf to your computer and use it in GitHub Desktop.
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);
//.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