Pārlūkot izejas kodu

2008-07-04 Rodrigo Kumpera <rkumpera@n ovell.com>

	* MethodBase.cs (GetMethodFromHandle): Fix a warning in
	the 1.0 build.



svn path=/trunk/mcs/; revision=107261
Rodrigo Kumpera 17 gadi atpakaļ
vecāks
revīzija
ca38445e1a

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

@@ -1,3 +1,8 @@
+2008-07-04  Rodrigo Kumpera  <rkumpera@n ovell.com>
+
+	* MethodBase.cs (GetMethodFromHandle): Fix a warning in
+	the 1.0 build.
+
 2008-07-04  Rodrigo Kumpera  <rkumpera@n ovell.com>
 
 	* MethodBase.cs (GetMethodFromHandle): Extract an internal version

+ 1 - 1
mcs/class/corlib/System.Reflection/MethodBase.cs

@@ -57,8 +57,8 @@ namespace System.Reflection {
 
 		public static MethodBase GetMethodFromHandle(RuntimeMethodHandle handle) {
 			MethodBase res = GetMethodFromHandleNoGenericCheck (handle);
-			Type t = res.DeclaringType;
 #if NET_2_0
+			Type t = res.DeclaringType;
 			if (t.IsGenericType || t.IsGenericTypeDefinition)
 				throw new ArgumentException ("Cannot resolve method because it's declared in a generic class.");
 #endif