* corlib.dll.sources: Removed ReflectionSerializationHolder.cs.
authorGert Driesen <drieseng@users.sourceforge.net>
Tue, 12 Aug 2008 09:04:52 +0000 (09:04 -0000)
committerGert Driesen <drieseng@users.sourceforge.net>
Tue, 12 Aug 2008 09:04:52 +0000 (09:04 -0000)
* ReflectionSerializationHolder.cs: Removed.
* common.src: Removed.

svn path=/trunk/mcs/; revision=110212

mcs/class/corlib/ChangeLog
mcs/class/corlib/System.Reflection/ChangeLog
mcs/class/corlib/System.Reflection/ReflectionSerializationHolder.cs [deleted file]
mcs/class/corlib/System.Reflection/common.src [deleted file]
mcs/class/corlib/corlib.dll.sources

index fd626648c504141555a717ce1b90d80f62748aeb..cf2ec00ff263968dfbf5daedf11f543b897661c8 100644 (file)
@@ -1,3 +1,7 @@
+2008-08-12  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * corlib.dll.sources: Removed ReflectionSerializationHolder.cs.
+
 2008-08-07  Sebastien Pouliot  <sebastien@ximian.com>
 
        * corlib.dll.sources: Add System.Security/SecurityState.cs
index c73f63e887490fdd00186ac19d666b4df13396e5..2fcceb84e287b71702f451f2c792f9d57e10c364 100644 (file)
@@ -1,3 +1,8 @@
+2008-08-12  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * ReflectionSerializationHolder.cs: Removed.
+       * common.src: Removed.
+
 2008-08-04  Atsushi Enomoto  <atsushi@ximian.com>
 
        * Assembly.cs : return UnmanagedMemoryStream from 
diff --git a/mcs/class/corlib/System.Reflection/ReflectionSerializationHolder.cs b/mcs/class/corlib/System.Reflection/ReflectionSerializationHolder.cs
deleted file mode 100644 (file)
index 033f3da..0000000
+++ /dev/null
@@ -1,110 +0,0 @@
-// ReflectionSerializationHolder.cs\r
-//\r
-// Note: this class was superseded by MemberInfoSerializationHolder but\r
-// it's still included in the build to provide backwards compatibility.\r
-//\r
-// Author:\r
-//  Patrik Torstensson\r
-//\r
-// (C) 2003 Patrik Torstensson\r
-\r
-//\r
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)\r
-//\r
-// Permission is hereby granted, free of charge, to any person obtaining\r
-// a copy of this software and associated documentation files (the\r
-// "Software"), to deal in the Software without restriction, including\r
-// without limitation the rights to use, copy, modify, merge, publish,\r
-// distribute, sublicense, and/or sell copies of the Software, and to\r
-// permit persons to whom the Software is furnished to do so, subject to\r
-// the following conditions:\r
-// \r
-// The above copyright notice and this permission notice shall be\r
-// included in all copies or substantial portions of the Software.\r
-// \r
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
-//\r
-\r
-using System;\r
-using System.Runtime.Serialization;\r
-\r
-namespace System.Reflection\r
-{\r
-       [Serializable]\r
-       internal class ReflectionSerializationHolder : IObjectReference, ISerializable\r
-       {\r
-               string          _memberName;\r
-               string          _memberSignature;\r
-               MemberTypes     _memberType;\r
-               Type            _reflectedType;\r
-\r
-               ReflectionSerializationHolder(SerializationInfo info, StreamingContext ctx)\r
-               {\r
-                       string assemblyName;\r
-                       string typeName;\r
-\r
-                       assemblyName = info.GetString("AssemblyName");\r
-                       typeName = info.GetString("ClassName");\r
-\r
-                       _memberName = info.GetString("Name");\r
-                       _memberSignature = info.GetString("Signature");\r
-                       _memberType = (MemberTypes) info.GetInt32("MemberType");\r
-\r
-                       // Load type\r
-                       Assembly asm = Assembly.Load(assemblyName);\r
-\r
-                       _reflectedType = asm.GetType(typeName, true, true);\r
-               }\r
-\r
-               public static void Serialize(SerializationInfo info, String name, Type klass, String signature, MemberTypes type)\r
-               {\r
-                       info.SetType( typeof(ReflectionSerializationHolder));\r
-\r
-                       info.AddValue("AssemblyName", klass.Module.Assembly.FullName, typeof(String));\r
-                       info.AddValue("ClassName", klass.FullName, typeof(String));\r
-\r
-                       info.AddValue("Name", name, typeof(String));\r
-                       info.AddValue("Signature", signature, typeof(String));\r
-                       info.AddValue("MemberType",(int)type);\r
-               }\r
-\r
-               public void GetObjectData(SerializationInfo info, StreamingContext context)\r
-               {\r
-                       throw new NotSupportedException();\r
-               }\r
-\r
-               public object GetRealObject(StreamingContext context)\r
-               {\r
-                       switch (_memberType) \r
-                       {\r
-                               case MemberTypes.Constructor:\r
-                                       ConstructorInfo [] ctors;\r
-\r
-                                       ctors = _reflectedType.GetConstructors (BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static);\r
-                                       for (int i = 0; i < ctors.Length; i++) \r
-                                               if ( ctors[i].ToString().Equals(_memberSignature)) \r
-                                                       return ctors[i];\r
-\r
-                                       throw new SerializationException("Failed to find serialized constructor");\r
-\r
-                               case MemberTypes.Method:\r
-                                       MethodInfo [] methods;\r
-\r
-                                       methods = _reflectedType.GetMethods(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static);\r
-                                       for (int i = 0; i < methods.Length; i++) \r
-                                               if ((methods[i]).ToString().Equals(_memberSignature)) \r
-                                                       return methods[i];\r
-\r
-                                       throw new SerializationException("Failed to find serialized method");\r
-                               default:\r
-                                       throw new SerializationException("Failed to get object for member type " + _memberType.ToString());\r
-                       }\r
-               }\r
-       }\r
-}\r
diff --git a/mcs/class/corlib/System.Reflection/common.src b/mcs/class/corlib/System.Reflection/common.src
deleted file mode 100644 (file)
index 022b676..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-Assembly.cs
-AssemblyNameFlags.cs
-BindingFlags.cs
-CallingConventions.cs
-ConstructorInfo.cs
-DefaultMemberAttribute.cs
-EventAttributes.cs
-EventInfo.cs
-FieldAttributes.cs
-FieldInfo.cs
-ICustomAttributeProvider.cs
-MemberFilter.cs
-MemberInfo.cs
-MemberTypes.cs
-MethodAttributes.cs
-MethodBase.cs
-MethodImplAttributes.cs
-MethodInfo.cs
-Module.cs
-ParameterAttributes.cs
-PropertyAttributes.cs
-PropertyInfo.cs
-ResourceAttributes.cs
-ResourceLocation.cs
-TypeAttributes.cs
index 4aac27eeb4b6d1eff4aac8e6b1d4a00af4cf2334..7bdcfb8edcd6017107d73d6faffb8976b31a5759 100644 (file)
@@ -487,7 +487,6 @@ System.Reflection/PropertyInfo.cs
 System.Reflection/ReflectionTypeLoadException.cs
 System.Reflection/ResourceAttributes.cs
 System.Reflection/ResourceLocation.cs
-System.Reflection/ReflectionSerializationHolder.cs
 System.Reflection/StrongNameKeyPair.cs
 System.Reflection/TargetException.cs
 System.Reflection/TargetInvocationException.cs