foreach (Type type in methodInstantiation) {
if (type == null)
throw new ArgumentNullException ();
- if (!(type is MonoType))
+ if (!(type is RuntimeType))
hasUserType = true;
}
return CustomAttributeData.GetCustomAttributes (this);
}
+#if MOBILE
+ static int get_core_clr_security_level ()
+ {
+ return 1;
+ }
+#else
//seclevel { transparent = 0, safe-critical = 1, critical = 2}
[MethodImplAttribute(MethodImplOptions.InternalCall)]
public extern int get_core_clr_security_level ();
+#endif
public override bool IsSecurityTransparent {
get { return get_core_clr_security_level () == 0; }
return CustomAttributeData.GetCustomAttributes (this);
}
+#if MOBILE
+ static int get_core_clr_security_level ()
+ {
+ return 1;
+ }
+#else
[MethodImplAttribute(MethodImplOptions.InternalCall)]
public extern int get_core_clr_security_level ();
+#endif
public override bool IsSecurityTransparent {
get { return get_core_clr_security_level () == 0; }