X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FSystem.Reflection%2FMethodInfo.cs;h=4b76a5d89cc22647a0db11a6ae62cb5e94214cd8;hb=089b4086dc4639288dec762546b729d9080fc81a;hp=3a51d0046d9066ece67ab6672ccd56860fa172ee;hpb=2dc6b499cb755dea33cea67bbd7993d207c5344c;p=mono.git diff --git a/mcs/class/corlib/System.Reflection/MethodInfo.cs b/mcs/class/corlib/System.Reflection/MethodInfo.cs index 3a51d0046d9..4b76a5d89cc 100644 --- a/mcs/class/corlib/System.Reflection/MethodInfo.cs +++ b/mcs/class/corlib/System.Reflection/MethodInfo.cs @@ -58,17 +58,6 @@ namespace System.Reflection { public abstract ICustomAttributeProvider ReturnTypeCustomAttributes { get; } - // FIXME: when this method is uncommented, corlib fails - // to build -/* - [DebuggerStepThrough] - [DebuggerHidden] - public new object Invoke (object obj, object[] parameters) - { - return base.Invoke (obj, parameters); - } -*/ - void _MethodInfo.GetIDsOfNames ([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId) { throw new NotImplementedException (); @@ -107,7 +96,7 @@ namespace System.Reflection { return Type.EmptyTypes; } -#if !NET_4_0 +#if !NET_4_0 && !MOONLIGHT public override bool IsGenericMethod { get { return false; @@ -136,7 +125,7 @@ namespace System.Reflection { #if NET_4_0 public override bool Equals (object obj) { - return obj == this; + return obj == (object) this; } public override int GetHashCode ()