2 // System.IO/StreamAsyncResult.cs
5 // Gonzalo Paniagua Javier (gonzalo@ximian.com)
7 // (c) 2004 Novell, Inc. (http://www.novell.com)
10 using System.Threading;
14 class StreamAsyncResult : IAsyncResult {
22 public StreamAsyncResult (object state)
27 public void SetComplete (Exception e)
37 public void SetComplete (Exception e, int nbytes)
43 public object AsyncState {
47 public WaitHandle AsyncWaitHandle {
51 wh = new ManualResetEvent (completed);
58 public virtual bool CompletedSynchronously {
62 public bool IsCompleted {
63 get { return completed; }
66 public Exception Exception {
71 get { return nbytes; }