jakesays-old / runsharp

Automatically exported from code.google.com/p/runsharp
MIT License
1 stars 0 forks source link

No support for generic methods? #32

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It seems to me CodeGen.Invoke() does not support invoking a generic method at 
the moment.

E.g. public static T SomeMethod<T>( object o )

Original issue reported on code.google.com by steven.j...@gmail.com on 18 Dec 2013 at 9:48

GoogleCodeExporter commented 9 years ago
Hi Steven,

you're right - this has not been added so far, because adding generics support 
to the overload resolver would add quite a bit of overhead (just compare the 
method resolution secions in C# 1.1 and 2.0 specifications :) Also, at the time 
of writing this library, I believed that generics solve a similar class of 
problems that dynamic code generation does and thus didn't feel like it's 
necessary to add this support.

Also, I'm no longer able to maintain this project for both technical and 
personal reasons - please have a look at my last comment on Issue 25.

Regards,
Stefan

Original comment by si...@triaxis.sk on 18 Dec 2013 at 10:03