[System]: Fix System.IO.Compression.CompressionLevel enum.
[mono.git] / mcs / class / System / System.Net / OpenWriteCompletedEventArgs.cs
index 3f467c317f9a26ced59e06bb50f268e120c6e23e..335249fd5b8363037c37d6ae87c18895e14acffd 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)
 //
 
 //
@@ -27,8 +27,6 @@
 // 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;
 
@@ -46,9 +44,12 @@ namespace System.Net
                Stream result;
 
                public Stream Result {
-                       get { return result; }
+                       get {
+#if NET_2_1
+                               RaiseExceptionIfNecessary ();
+#endif
+                               return result;
+                       }
                }
        }
 }
-
-#endif