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