Created
October 6, 2017 16:00
-
-
Save EgorBo/3b06b270b1dcb7932e1061343ee31353 to your computer and use it in GitHub Desktop.
This file contains 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); //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