using System;
using System.IO;
-using System.Threading;\r
+using System.Threading;
using System.Net;
-#if NET_2_0
-
namespace System.Net
{
class FtpAsyncResult : IAsyncResult
internal Stream Stream {
get {
return stream;
- }\r
-\r
+ }
+
set { stream = value; }
}
lock (locker) {
completed = true;
if (waitHandle != null)
- waitHandle.Set ();\r
- }\r
- DoCallback ();\r
+ waitHandle.Set ();
+ }
+ DoCallback ();
}
internal void SetCompleted (bool synch, FtpWebResponse response)
}
internal void DoCallback ()
- {\r
- if (callback != null)\r
- try {\r
- callback (this);\r
- }\r
- catch (Exception) {\r
- }\r
+ {
+ if (callback != null)
+ try {
+ callback (this);
+ }
+ catch (Exception) {
+ }
}
// Cleanup resources
}
}
-#endif