[Mono-bugs] [Bug 78068][Nor] Changed - MethodInfo.GetGenericMethodDefinition() does not return the expected one

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jul 19 08:39:32 EDT 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by atsushi at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=78068

--- shadow/78068	2006-04-10 04:58:11.000000000 -0400
+++ shadow/78068.tmp.26655	2007-07-19 08:39:32.000000000 -0400
@@ -1,23 +1,23 @@
 Bug#: 78068
 Product: Mono: Class Libraries
 Version: 1.1
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: CORLIB
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: atsushi at ximian.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 URL: 
 Cc: martin at ximian.com,rharinath at novell.com
-Summary: Type.GetMethod for generic type
+Summary: MethodInfo.GetGenericMethodDefinition() does not return the expected one
 
 The following code shows us that for generic types Type.GetMethod() returns
 an instantiated generic method definition, not the generic method
 definition. I'm not sure which (Mono or MS) is correct though.
 
 --------
@@ -97,6 +97,18 @@
 some differences (at least as ToString() results) - I'm not sure if the
 cause of the problem is the same.
 
 It is an extracted example from System.Collections.Generic.List<T>.
 
 The results are irrelevant to the compiler (gmcs/csc).
+
+------- Additional Comments From atsushi at ximian.com  2007-07-19 08:39 -------
+All but the method equality (the final line on the console output) are
+gone. And am attaching a fix for the last one issue.
+
+This is an excerpt from MSDN explanation on
+MethodInfo.GetGenericMethodDefinition:
+
+  If you call GetGenericMethodDefinition() on a MethodInfo that
+  already represents a generic method definition, it returns the
+  current MethodInfo.
+


More information about the mono-bugs mailing list