瀏覽代碼

2009-03-13 Atsushi Enomoto <[email protected]>

        * XmlRootAttribute.cs : it is also expected to have
          internal property for SL2.



svn path=/trunk/mcs/; revision=129290
Atsushi Eno 17 年之前
父節點
當前提交
aef46c7bed

+ 5 - 0
mcs/class/System.XML/System.Xml.Serialization/ChangeLog

@@ -1,3 +1,8 @@
+2009-03-13  Atsushi Enomoto  <[email protected]>
+
+	* XmlRootAttribute.cs : it is also expected to have
+	  internal property for SL2.
+
 2009-03-13  Atsushi Enomoto  <[email protected]>
 
 	* XmlArrayItemAttribute.cs, XmlElementAttribute.cs,

+ 9 - 2
mcs/class/System.XML/System.Xml.Serialization/XmlRootAttribute.cs

@@ -43,7 +43,7 @@ namespace System.Xml.Serialization
 	{
 		private string dataType;
 		private string elementName;
-		private bool isNullable = true;
+		private bool isNullable = true, isNullableSpecified;
 		private string ns;
 
 		public XmlRootAttribute ()
@@ -77,7 +77,14 @@ namespace System.Xml.Serialization
 
 		public bool IsNullable {
 			get { return isNullable; }
-			set { isNullable = value; }
+			set {
+				isNullableSpecified = true;
+				isNullable = value;
+			}
+		}
+
+		public bool IsNullableSpecified {
+			get { return isNullableSpecified; }
 		}
 
 		public string Namespace {