Add more tests and fixes in Construction loaders.
[mono.git] / mcs / class / Microsoft.Build / Microsoft.Build.Construction / ProjectMetadataElement.cs
index cf3978e88e8e3260f56e7a48c61b66491c938e39..797a04d04d425158adf82570694fe4b938fd1ff4 100644 (file)
@@ -26,6 +26,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+using System;
 using System.Collections.Generic;
 using System.Xml;
 
@@ -39,8 +40,10 @@ namespace Microsoft.Build.Construction
                         Name = name;
                         ContainingProject = containingProject;
                 }
-                public string Name { get; set; }
-                public string Value { get; set; }
+                string name;
+                public string Name { get { return name ?? String.Empty; } set { name = value; } }
+                string internalValue;
+                public string Value { get { return internalValue ?? String.Empty; } set { internalValue = value; } }
                 internal override string XmlName {
                         get { return Name; }
                 }