Imported Upstream version 4.0.0~alpha1

Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
Jo Shields
2015-04-07 09:35:12 +01:00
parent 283343f570
commit 3c1f479b9d
22469 changed files with 2931443 additions and 869343 deletions

View 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
}
}