[ComDefaultInterfaceAttribute (typeof (_MethodInfo))]
[Serializable]
[ClassInterface(ClassInterfaceType.None)]
+#if MOBILE
+ public abstract class MethodInfo: MethodBase {
+#else
public abstract class MethodInfo: MethodBase, _MethodInfo {
-
+#endif
public abstract MethodInfo GetBaseDefinition();
internal virtual MethodInfo GetBaseMethod ()
public abstract ICustomAttributeProvider ReturnTypeCustomAttributes { get; }
+#if !MOBILE
void _MethodInfo.GetIDsOfNames ([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId)
{
throw new NotImplementedException ();
{
throw new NotImplementedException ();
}
+#endif
[ComVisible (true)]
public virtual MethodInfo GetGenericMethodDefinition ()
return Type.EmptyTypes;
}
-#if !NET_4_0 && !MOONLIGHT
+#if !NET_4_0
public override bool IsGenericMethod {
get {
return false;
}
#endif
+#if NET_4_5
+ public virtual Delegate CreateDelegate (Type delegateType)
+ {
+ return Delegate.CreateDelegate (delegateType, this);
+ }
+
+ public virtual Delegate CreateDelegate (Type delegateType, object target)
+ {
+ return Delegate.CreateDelegate (delegateType, target, this);
+ }
+#endif
}
}