Created
October 6, 2017 16:00
-
-
Save EgorBo/d46f4bc7646a30104c24e3eb14588daf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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