浏览代码

2005-08-31 Sebastien Pouliot <[email protected]>

	* XmlSchemaException.cs: Added a Demand for SerializationFormatter
	on GetObjectData method.


svn path=/trunk/mcs/; revision=49176
Sebastien Pouliot 20 年之前
父节点
当前提交
d3e5dfee63

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

@@ -1,3 +1,8 @@
+2005-08-31  Sebastien Pouliot  <[email protected]>
+
+	* XmlSchemaException.cs: Added a Demand for SerializationFormatter
+	on GetObjectData method.
+
 2005-08-25  Atsushi Enomoto <[email protected]>
 
 	* XmlSchemaSimpleTypeRestriction.cs : normalize EOL.

+ 4 - 6
mcs/class/System.XML/System.Xml.Schema/XmlSchemaException.cs

@@ -5,7 +5,7 @@
 // 	Dwivedi, Ajay kumar [email protected]
 //	Enomoto, Atsushi [email protected]
 //
-
+// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -26,7 +26,7 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-using System;
+
 using System.Globalization;
 using System.Runtime.Serialization;
 using System.Security.Permissions;
@@ -170,10 +170,8 @@ namespace System.Xml.Schema
 #endif
 
 		// Methods
-#if NET_2_0
-		[SecurityPermission (SecurityAction.LinkDemand,
-			Flags=SecurityPermissionFlag.SerializationFormatter)]
-#endif
+
+		[SecurityPermission (SecurityAction.Demand, SerializationFormatter = true)]
 		public override void GetObjectData(SerializationInfo info, StreamingContext context)
 		{
 			base.GetObjectData (info, context);