+ public virtual Type ReturnType {
+ get { return null; }
+ }
+
+ public abstract ICustomAttributeProvider ReturnTypeCustomAttributes { get; }
+
+ void _MethodInfo.GetIDsOfNames ([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId)
+ {
+ throw new NotImplementedException ();
+ }
+
+ void _MethodInfo.GetTypeInfo (uint iTInfo, uint lcid, IntPtr ppTInfo)
+ {
+ throw new NotImplementedException ();
+ }
+
+ void _MethodInfo.GetTypeInfoCount (out uint pcTInfo)
+ {
+ throw new NotImplementedException ();
+ }
+
+ void _MethodInfo.Invoke (uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [ComVisible (true)]
+ public virtual MethodInfo GetGenericMethodDefinition ()
+ {
+ throw new NotSupportedException ();
+ }
+
+ public virtual MethodInfo MakeGenericMethod (params Type [] typeArguments)
+ {
+ throw new NotSupportedException (this.GetType().ToString ());
+ }
+
+ // GetGenericArguments, IsGenericMethod, IsGenericMethodDefinition
+ // and ContainsGenericParameters are implemented in the derived classes.
+ [ComVisible (true)]
+ public override Type [] GetGenericArguments () {
+ return Type.EmptyTypes;
+ }
+
+#if !NET_4_0 && !MOONLIGHT
+ public override bool IsGenericMethod {
+ get {
+ return false;
+ }
+ }
+
+ public override bool IsGenericMethodDefinition {
+ get {
+ return false;
+ }
+ }
+
+ public override bool ContainsGenericParameters {
+ get {
+ return false;
+ }
+ }
+#endif
+
+ public virtual ParameterInfo ReturnParameter {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+#if NET_4_0
+ public override bool Equals (object obj)
+ {
+ return obj == (object) this;
+ }
+
+ public override int GetHashCode ()
+ {
+ return base.GetHashCode ();
+ }
+
+ public static bool operator == (MethodInfo left, MethodInfo right)
+ {
+ if ((object)left == (object)right)
+ return true;
+ if ((object)left == null ^ (object)right == null)
+ return false;
+ return left.Equals (right);
+ }
+
+ public static bool operator != (MethodInfo left, MethodInfo right)
+ {
+ if ((object)left == (object)right)
+ return false;
+ if ((object)left == null ^ (object)right == null)
+ return true;
+ return !left.Equals (right);
+ }
+#endif
+
+ }