Prechádzať zdrojové kódy

2008-07-23 Marek Safar <[email protected]>

	* MethodBase.cs (GetMethodFromHandle): Needed for bootraping.


svn path=/trunk/mcs/; revision=108577
Marek Safar 17 rokov pred
rodič
commit
de0a43d47d

+ 4 - 0
mcs/class/corlib/System.Reflection/ChangeLog

@@ -1,3 +1,7 @@
+2008-07-23  Marek Safar  <[email protected]>
+
+	* MethodBase.cs (GetMethodFromHandle): Needed for bootraping.
+
 2008-07-22  Rodrigo Kumpera  <[email protected]>
 
 	* MonoGenericClass.cs (GetMethod): Under compiler mode allow

+ 3 - 2
mcs/class/corlib/System.Reflection/MethodBase.cs

@@ -68,9 +68,10 @@ namespace System.Reflection {
 		[MethodImplAttribute (MethodImplOptions.InternalCall)]
 		private extern static MethodBase GetMethodFromHandleInternalType (IntPtr method_handle, IntPtr type_handle);
 
-#if NET_2_0
+#if NET_2_0 || BOOTSTRAP_NET_2_0
 		[ComVisible (false)]
-		public static MethodBase GetMethodFromHandle(RuntimeMethodHandle handle, RuntimeTypeHandle declaringType) {
+		public static MethodBase GetMethodFromHandle(RuntimeMethodHandle handle, RuntimeTypeHandle declaringType)
+		{
 			if (handle.Value == IntPtr.Zero)
 				throw new ArgumentException ("The handle is invalid.");
 			MethodBase res = GetMethodFromHandleInternalType (handle.Value, declaringType.Value);