C# - How to get class of Type

Posted by Tim on Stack Overflow See other posts from Stack Overflow or by Tim
Published on 2010-03-26T15:47:21Z Indexed on 2010/03/26 15:53 UTC
Read the original article Hit count: 340

Filed under:
|

I need to use method like:

DoSomething<(T)>();

But i don't know which Type i have, only object of class Type. How can i call this method if I have only:

Type typeOfGeneric;

© Stack Overflow or respective owner

Related posts about c#

Related posts about generics