Created
October 4, 2012 06:40
Revisions
-
rojepp created this gist
Oct 4, 2012 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ using System; namespace ConsoleApplication2 { class Program { static DateTime compbugresult; static void Main(string[] args) { compbugresult = compbug.result; } } static class compbug { static DateTime randB = System.DateTime.Now; public static DateTime result; static compbug() { result = System.Threading.Tasks.Task.Run(() => randB).Result; } } }