[Mono-dev] corcompare patch for printing generic method type arguments

Atsushi Eno atsushi at ximian.com
Tue Oct 25 23:00:35 EDT 2005


Hi,

Hence, new patch.

I also noticed that currently it does not differentiate abstract/
static/sealed (e.g. Foo() and static Foo()). It would be extraneous
if we output MethodAttributes differences (there are commented lines)
but it haven't been activated for a while.

So, now it includes three changes:

	- generic parameter constraints on method names e.g.
	  Foo() and Foo<T>() are distinguished.
	- generic parameter attributes (actually it contains "class"
	  and "struct" constraints. so they are duplicate) on
	  both generic types and generic methods.
	- abstract/static/sealed signature on methods.

Atsushi Eno


Martin Baulig wrote:
> On Wed, 2005-10-26 at 03:09 +0900, Atsushi Eno wrote:
> 
>> Just wondering, what should I print constraints for example below?
>>
>> 	where T : class, IFoo
> 
> Hi,
> 
> that's "<class (IFoo) T>".
> 
>> This change should be easy. I'll also include GenericTypeAttributes
>> differences next time.
> 
> cool.
> 
> Martin
> 
> 
> 

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: output-generics-and-method-atts.patch
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051026/13e8b9f1/attachment.pl 


More information about the Mono-devel-list mailing list