New error message.
[mono.git] / mcs / class / System / System.Net / UploadStringCompletedEventArgs.cs
index 2b8b2a4a4f7b03d14f474d9801d7dee20b879355..dfef2c9ba0e43b535f9d9b96bac29c72e0853de7 100644 (file)
@@ -4,7 +4,7 @@
 // Author:
 //     Atsushi Enomoto  <atsushi@ximian.com>
 //
-// (C) 2006 Novell, Inc. (http://www.novell.com)
+// Copyright (C) 2006,2009 Novell, Inc (http://www.novell.com)
 //
 
 //
@@ -30,7 +30,6 @@
 #if NET_2_0
 
 using System.ComponentModel;
-using System.IO;
 
 namespace System.Net
 {
@@ -46,7 +45,12 @@ namespace System.Net
                string result;
 
                public string Result {
-                       get { return result; }
+                       get {
+#if NET_2_1
+                               RaiseExceptionIfNecessary ();
+#endif
+                               return result;
+                       }
                }
        }
 }