2010-03-07 Rodrigo Kumpera <rkumpera@novell.com>
- * ManifestResourceInfo.cs> Ne v4 .ctor.
+ * MethodInfo.cs: New v4 stuff.
+
+2010-03-07 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * ManifestResourceInfo.cs: New v4 .ctor.
2010-02-28 Rodrigo Kumpera <rkumpera@novell.com>
return Type.EmptyTypes;
}
+#if !NET_4_0
public override bool IsGenericMethod {
get {
return false;
return false;
}
}
+#endif
public virtual ParameterInfo ReturnParameter {
get {
throw new NotSupportedException ();
}
}
+
+#if NET_4_0
+ public override bool Equals (object obj)
+ {
+ return obj == 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
+
}
}