Merge pull request #439 from mono-soc-2012/garyb/iconfix
[mono.git] / mcs / class / System / System.Net / DownloadStringCompletedEventArgs.cs
index 679295c0be366e0296ea3afe8a960b137302762e..08dca9e8527d68ae4f39b4dd2e283e42619f00a6 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)
 //
 
 //
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-#if NET_2_0
-
 using System.ComponentModel;
-using System.IO;
 
 namespace System.Net
 {
@@ -46,9 +43,13 @@ namespace System.Net
                string result;
 
                public string Result {
-                       get { return result; }
+                       get {
+#if NET_2_1
+                               RaiseExceptionIfNecessary ();
+#endif
+                               return result;
+                       }
                }
        }
 }
 
-#endif