2007-01-22 Miguel de Icaza <miguel@novell.com>
authorMiguel de Icaza <miguel@gnome.org>
Mon, 22 Jan 2007 20:48:52 +0000 (20:48 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Mon, 22 Jan 2007 20:48:52 +0000 (20:48 -0000)
* RuntimeHelpers.cs: The constrained methods are safe not throwing
exceptions.  The MonoTODO is enough, no need to throw

svn path=/trunk/mcs/; revision=71463

mcs/class/corlib/System.Runtime.CompilerServices/ChangeLog
mcs/class/corlib/System.Runtime.CompilerServices/RuntimeHelpers.cs

index 64afe8f813b0a80b66d95a9fd80af4988117fe3d..f338f149a2a8f033d7a15785d414e8d180f7729f 100644 (file)
@@ -1,3 +1,8 @@
+2007-01-22  Miguel de Icaza  <miguel@novell.com>
+
+       * RuntimeHelpers.cs: The constrained methods are safe not throwing
+       exceptions.  The MonoTODO is enough, no need to throw
+
 2006-11-01  Sebastien Pouliot  <sebastien@ximian.com>
 
        * RuntimeWrappedException.cs: Add missing GetObjectData method.
index df1919549454ad4817bf08bc1a8ba6d2cd3d0e2f..6db4aa5fe6f20c711d15fbdb62b33cb09158cf65 100644 (file)
@@ -45,9 +45,7 @@ namespace System.Runtime.CompilerServices
                public delegate void TryCode (Object userData);
 
                public delegate void CleanupCode (Object userData, bool exceptionThrown);
-#endif
-
-#if !NET_2_0
+#else
                private RuntimeHelpers () {}
 #endif
 
@@ -97,49 +95,49 @@ namespace System.Runtime.CompilerServices
                }
 
 #if NET_2_0
-               [MonoTODO("Not implemented")]
-               public static void ExecuteCodeWithGuaranteedCleanup (TryCode code, CleanupCode backoutCode, Object userData) {
-                       throw new NotImplementedException ();
+               [MonoTODO("Currently a no-op")]
+               public static void ExecuteCodeWithGuaranteedCleanup (TryCode code, CleanupCode backoutCode, Object userData)
+               {
                }
 
-               [MonoTODO("Not implemented")]
+               [MonoTODO("Currently a no-op")]
                [ReliabilityContract (Consistency.WillNotCorruptState, Cer.MayFail)]
-               public static void PrepareConstrainedRegions () {
-                       throw new NotImplementedException ();
+               public static void PrepareConstrainedRegions ()
+               {
                }
 
-               [MonoTODO("Not implemented")]
+               [MonoTODO("Currently a no-op")]
                [ReliabilityContract (Consistency.WillNotCorruptState, Cer.MayFail)]
-               public static void PrepareConstrainedRegionsNoOP () {
-                       throw new NotImplementedException ();
+               public static void PrepareConstrainedRegionsNoOP ()
+               {
                }
 
-               [MonoTODO("Not implemented")]
+               [MonoTODO("Currently a no-op")]
                [ReliabilityContract (Consistency.WillNotCorruptState, Cer.MayFail)]
-               public static void ProbeForSufficientStack() {
-                       throw new NotImplementedException ();
+               public static void ProbeForSufficientStack()
+               {
                }
 
-               [MonoTODO("Not implemented")]
-               public static void PrepareDelegate (Delegate d) {
+               [MonoTODO("Currently a no-op")]
+               public static void PrepareDelegate (Delegate d)
+               {
                        if (d == null)
                                throw new ArgumentNullException ("d");
-                       throw new NotImplementedException ();
                }
 
-               [MonoTODO]
-               public static void PrepareMethod (RuntimeMethodHandle method) {
-                       throw new NotImplementedException ();
+               [MonoTODO("Currently a no-op")]
+               public static void PrepareMethod (RuntimeMethodHandle method)
+               {
                }
 
-               [MonoTODO]
-               public static void PrepareMethod (RuntimeMethodHandle method, RuntimeTypeHandle[] instantiation) {
-                       throw new NotImplementedException ();
+               [MonoTODO("Currently a no-op")]
+               public static void PrepareMethod (RuntimeMethodHandle method, RuntimeTypeHandle[] instantiation)
+               {
                }
 
-               [MonoTODO]
-               public static void RunModuleConstructor (ModuleHandle module) {
-                       throw new NotImplementedException ();
+               [MonoTODO("Currently a no-op")]
+               public static void RunModuleConstructor (ModuleHandle module)
+               {
                }
 #endif
        }