[runtime] Updates comments.
[mono.git] / mcs / class / corlib / System.Reflection / Module.cs
index c2f6e1f0ec5a25e48cca6e82d6691ea33edc066b..79bddc252ae00193b1fe70f2ab0a332929efe4c1 100644 (file)
@@ -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<CustomAttributeData> CustomAttributes {
                        get { return GetCustomAttributesData (); }
                }
-#endif
        }
 }