[Mono-list] Extending generic methods

Chris Howie cdhowie at gmail.com
Sun Sep 28 13:06:00 EDT 2008


On Sun, Sep 28, 2008 at 11:52 AM, DraconisBG <draconisbg at yahoo.com> wrote:
> I got a task where I have to modify Mono/GMCS in order to make the following
> possible:
>
> ------------------------------------------------
> public void GenericMethod<T> (...) {...}
>
> ...
>
> System.Type typ = <expression that evaluates to a type>;
> GenericMethod<typ> (...);
>
> ------------------------------------------------

Uhm, this is already possible and working, and has been for (IIRC)
several releases.

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers


More information about the Mono-list mailing list