Просмотр исходного кода

2005-11-09 Atsushi Enomoto <[email protected]>

	* XmlTokenizedType.cs, XmlNodeOrder.cs : so those enums happen to
	  have [Serializable] in .NET 1.x, and removed in 2.0 (enums are
	  anyways serializable, so those attributes do not make sense).


svn path=/trunk/mcs/; revision=52877
Atsushi Eno 20 лет назад
Родитель
Сommit
eef73ce68c

+ 6 - 0
mcs/class/System.XML/System.Xml/ChangeLog

@@ -1,3 +1,9 @@
+2005-11-09  Atsushi Enomoto <[email protected]>
+
+	* XmlTokenizedType.cs, XmlNodeOrder.cs : so those enums happen to
+	  have [Serializable] in .NET 1.x, and removed in 2.0 (enums are
+	  anyways serializable, so those attributes do not make sense).
+
 2005-11-09  Atsushi Enomoto <[email protected]>
 
 	* XmlValidatingReader.cs : added CanReadBinaryContent.

+ 3 - 0
mcs/class/System.XML/System.Xml/XmlNodeOrder.cs

@@ -29,7 +29,10 @@
 
 namespace System.Xml
 {
+#if NET_2_0
+#else
 	[Serializable]
+#endif
 	public enum XmlNodeOrder
 	{
 		Before = 0,

+ 5 - 1
mcs/class/System.XML/System.Xml/XmlTokenizedType.cs

@@ -29,7 +29,11 @@
 
 namespace System.Xml
 {
-	[Serializable] public enum XmlTokenizedType
+#if NET_2_0
+#else
+	[Serializable]
+#endif
+	public enum XmlTokenizedType
 	{
 		CDATA = 0,
 		ID = 1,