{
}
-#if MOBILE && DISABLE_CAS_USE
- [Obsolete ("CAS support is removed by linker", true)]
+#if MOBILE
+ [Conditional ("FEATURE_MONO_CAS")]
#else
[MonoTODO ("CAS support is experimental (and unsupported). Imperative mode is not implemented.")]
#endif
public abstract IPermission Copy ();
-#if MOBILE && DISABLE_CAS_USE
- [Obsolete ("CAS support is removed by linker", true)]
+#if MOBILE
+ [Conditional ("FEATURE_MONO_CAS")]
#endif
public void Demand ()
{
new PermissionSet (this).CasOnlyDemand (3);
}
-#if MOBILE && DISABLE_CAS_USE
- [Obsolete ("CAS support is removed by linker", true)]
+#if MOBILE
+ [Conditional ("FEATURE_MONO_CAS")]
#else
[MonoTODO ("CAS support is experimental (and unsupported). Imperative mode is not implemented.")]
#endif
return null;
}
-#if MOBILE && DISABLE_CAS_USE
- [Obsolete ("CAS support is removed by linker", true)]
+#if MOBILE
+ [Conditional ("FEATURE_MONO_CAS")]
#else
[MonoTODO ("CAS support is experimental (and unsupported). Imperative mode is not implemented.")]
#endif
new PermissionSet (this).PermitOnly ();
}
-#if MOBILE && DISABLE_CAS_USE
- [Obsolete ("CAS support is removed by linker", true)]
+#if MOBILE
+ [Conditional ("FEATURE_MONO_CAS")]
#else
[MonoTODO ("CAS support is experimental (and unsupported). Imperative mode is not implemented.")]
#endif
throw new NotImplementedException ();
}
-#if MOBILE && DISABLE_CAS_USE
- [Obsolete ("CAS support is removed by linker", true)]
+#if MOBILE
+ [Conditional ("FEATURE_MONO_CAS")]
#else
[MonoTODO ("CAS support is experimental (and unsupported). Imperative mode is not implemented.")]
#endif
throw new NotImplementedException ();
}
-#if MOBILE && DISABLE_CAS_USE
- [Obsolete ("CAS support is removed by linker", true)]
+#if MOBILE
+ [Conditional ("FEATURE_MONO_CAS")]
#else
[MonoTODO ("CAS support is experimental (and unsupported). Imperative mode is not implemented.")]
#endif
throw new NotImplementedException ();
}
-#if MOBILE && DISABLE_CAS_USE
- [Obsolete ("CAS support is removed by linker", true)]
+#if MOBILE
+ [Conditional ("FEATURE_MONO_CAS")]
#else
[MonoTODO ("CAS support is experimental (and unsupported). Imperative mode is not implemented.")]
#endif
msg = String.Format (msg, target.GetType (), expected);
throw new ArgumentException (msg, "target");
}
+
+#if MOBILE
+ // Workaround for CS0629
+ void IStackWalk.Assert ()
+ {
+ }
+
+ void IStackWalk.Deny ()
+ {
+ }
+
+ void IStackWalk.PermitOnly ()
+ {
+ }
+
+ void IStackWalk.Demand ()
+ {
+ }
+
+ void IPermission.Demand ()
+ {
+ }
+#endif
}
}