2006-09-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / mcs / class / System / System.CodeDom / CodeSnippetCompileUnit.cs
index 34de5f4d457c806c9b4c5249bfc775d9979f26bf..40c541455fc5fbac0f6f039ea14c9f179b358edb 100644 (file)
@@ -47,7 +47,6 @@ namespace System.CodeDom
 #if NET_2_0
                public CodeSnippetCompileUnit ()
                {
-                       value = String.Empty;
                }
 #endif
                public CodeSnippetCompileUnit( string value )
@@ -69,6 +68,9 @@ namespace System.CodeDom
 
                public string Value {
                        get {
+                               if (this.value == null) {
+                                       return string.Empty;
+                               }
                                return this.value;
                        }
                        set {