X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FSystem.Reflection%2FModule.cs;h=79bddc252ae00193b1fe70f2ab0a332929efe4c1;hb=c7ba3619f367944b6740c7e335e2a96499999859;hp=c2f6e1f0ec5a25e48cca6e82d6691ea33edc066b;hpb=90d6059c5475419ddf6e0fc4b49098158010cab0;p=mono.git diff --git a/mcs/class/corlib/System.Reflection/Module.cs b/mcs/class/corlib/System.Reflection/Module.cs index c2f6e1f0ec5..79bddc252ae 100644 --- a/mcs/class/corlib/System.Reflection/Module.cs +++ b/mcs/class/corlib/System.Reflection/Module.cs @@ -50,10 +50,8 @@ namespace System.Reflection { [StructLayout (LayoutKind.Sequential)] #if MOBILE public abstract class Module : ISerializable, ICustomAttributeProvider { -#elif NET_4_0 - public abstract class Module : ISerializable, ICustomAttributeProvider, _Module { #else - public partial class Module : ISerializable, ICustomAttributeProvider, _Module { + public abstract class Module : ISerializable, ICustomAttributeProvider, _Module { #endif public static readonly TypeFilter FilterTypeName = new TypeFilter (filter_by_type_name); public static readonly TypeFilter FilterTypeNameIgnoreCase = new TypeFilter (filter_by_type_name_ignore_case); @@ -71,11 +69,7 @@ namespace System.Reflection { const BindingFlags defaultBindingFlags = BindingFlags.Public | BindingFlags.Static | BindingFlags.Instance; -#if NET_4_0 protected -#else - internal -#endif Module () { } @@ -128,10 +122,7 @@ namespace System.Reflection { [SecurityPermission (SecurityAction.LinkDemand, SerializationFormatter = true)] public virtual void GetObjectData (SerializationInfo info, StreamingContext context) { - if (info == null) - throw new ArgumentNullException ("info"); - - UnitySerializationHolder.GetModuleData (this, info, context); + throw new NotImplementedException (); } [ComVisible (true)] @@ -288,7 +279,6 @@ namespace System.Reflection { } #endif -#if NET_4_0 public override bool Equals (object o) { return o == (object) this; @@ -317,9 +307,7 @@ namespace System.Reflection { return !left.Equals (right); } -#endif -#if NET_4_0 public virtual Assembly Assembly { get { throw CreateNIE (); } @@ -454,12 +442,9 @@ namespace System.Reflection { { throw CreateNIE (); } -#endif -#if NET_4_5 public virtual IEnumerable CustomAttributes { get { return GetCustomAttributesData (); } } -#endif } }