Explorar el Código

2006-02-03 Zoltan Varga <[email protected]>

	* MethodBase.cs MonoMethod.cs: Implement IsGenericMethod property.
	Fixes #77460.

svn path=/trunk/mcs/; revision=56548
Zoltan Varga hace 20 años
padre
commit
57c0d7f27c

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

@@ -1,3 +1,8 @@
+2006-02-03  Zoltan Varga  <[email protected]>
+
+	* MethodBase.cs MonoMethod.cs: Implement IsGenericMethod property.
+	Fixes #77460.
+
 2005-12-23  Sebastien Pouliot  <[email protected]>
 
 	* Assembly.cs: Fixed #75950. The icall has been changed to accept a 

+ 6 - 0
mcs/class/corlib/System.Reflection/MethodBase.cs

@@ -210,6 +210,12 @@ namespace System.Reflection {
 				throw new NotSupportedException ();
 			}
 		}
+
+		public virtual bool IsGenericMethod {
+			get {
+				return false;
+			}
+		}
 #endif
 
 #if NET_2_0

+ 6 - 0
mcs/class/corlib/System.Reflection/MonoMethod.cs

@@ -296,6 +296,12 @@ namespace System.Reflection {
 			[MethodImplAttribute(MethodImplOptions.InternalCall)]
 			get;
 		}
+
+		public override bool IsGenericMethod {
+			get {
+				return IsGenericMethodDefinition || Mono_IsInflatedMethod;
+			}
+		}
 #endif
 
 #if NET_2_0