namespace System.Runtime.CompilerServices
{
+#if NET_2_0
+ public static class RuntimeHelpers
+#else
[Serializable]
public sealed class RuntimeHelpers
+#endif
{
+#if NET_2_0
+ public delegate void TryCode (Object userData);
+
+ public delegate void CleanupCode (Object userData, bool exceptionThrown);
+#endif
+
+#if !NET_2_0
private RuntimeHelpers () {}
+#endif
[MethodImplAttribute(MethodImplOptions.InternalCall)]
static extern void InitializeArray (Array array, IntPtr fldHandle);
#if NET_2_0
[MonoTODO]
- [ReliabilityContract (Consistency.WillNotCorruptState, CER.MayFail)]
+ public static void ExecuteCodeWithGuaranteedCleanup (TryCode code, CleanupCode backoutCode, Object userData) {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ [ReliabilityContract (Consistency.WillNotCorruptState, Cer.MayFail)]
public static void PrepareConstrainedRegions () {
throw new NotImplementedException ();
}
+ [MonoTODO]
+ [ReliabilityContract (Consistency.WillNotCorruptState, Cer.MayFail)]
+ public static void PrepareConstrainedRegionsNoOP () {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ [ReliabilityContract (Consistency.WillNotCorruptState, Cer.MayFail)]
+ public static void ProbeForSufficientStack() {
+ throw new NotImplementedException ();
+ }
+
[MonoTODO]
public static void PrepareDelegate (Delegate d) {
if (d == null)
public static void PrepareMethod (RuntimeMethodHandle method, RuntimeTypeHandle[] instantiation) {
throw new NotImplementedException ();
}
+
+ [MonoTODO]
+ public static void RunModuleConstructor (ModuleHandle module) {
+ throw new NotImplementedException ();
+ }
#endif
}
}