Created
August 25, 2011 12:40
-
-
Save marek-safar/1170559 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; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Threading.Tasks; | |
class A : IAsyncResult | |
{ | |
#region IAsyncResult implementation | |
public object AsyncState { | |
get { | |
throw new NotImplementedException (); | |
} | |
} | |
public System.Threading.WaitHandle AsyncWaitHandle { | |
get { | |
throw new NotImplementedException (); | |
} | |
} | |
public bool CompletedSynchronously { | |
get { | |
throw new NotImplementedException (); | |
} | |
} | |
public bool IsCompleted { | |
get { | |
throw new NotImplementedException (); | |
} | |
} | |
#endregion | |
} | |
class C | |
{ | |
public static void Main () | |
{ | |
var f = new TaskFactory<int> (); | |
f.FromAsync (new A (), null); | |
return; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment