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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] QAContact: [EMAIL PROTECTED] TargetMilestone: --- URL: Cc: [EMAIL PROTECTED],[EMAIL PROTECTED] -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 [EMAIL PROTECTED] 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. + _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
