using System.Text;
using System.Threading;
using MemberListType = System.RuntimeType.MemberListType;
+#if !MONO
using RuntimeTypeCache = System.RuntimeType.RuntimeTypeCache;
+#endif
using System.Runtime.CompilerServices;
[Serializable]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
#pragma warning restore 618
[System.Runtime.InteropServices.ComVisible(true)]
- public abstract class MethodInfo : MethodBase, _MethodInfo
+ public abstract class MethodInfo : MethodBase
+#if !MOBILE
+ , _MethodInfo
+#endif
{
#region Constructor
protected MethodInfo() { }
public virtual Delegate CreateDelegate(Type delegateType, Object target) { throw new NotSupportedException(Environment.GetResourceString("NotSupported_SubclassOverride")); }
#endregion
-#if !FEATURE_CORECLR
+#if !FEATURE_CORECLR && !MOBILE
Type _MethodInfo.GetType()
{
return base.GetType();
throw new NotImplementedException();
}
#endif
+
+#if MONO
+ // TODO: Remove, needed only for MonoCustomAttribute
+ internal virtual MethodInfo GetBaseMethod ()
+ {
+ return this;
+ }
+#endif
}
+#if !MONO
[Serializable]
internal sealed class RuntimeMethodInfo : MethodInfo, ISerializable, IRuntimeMethodInfo
{
}
#endregion
}
+#endif
}