How do I get the type name of a generic type argument?

Posted by Tomas Lycken on Stack Overflow See other posts from Stack Overflow or by Tomas Lycken
Published on 2010-04-05T22:47:42Z Indexed on 2010/04/05 22:53 UTC
Read the original article Hit count: 141

Filed under:
|

If I have a method signature like

public string myMethod<T>( ... )

How can I, inside the method, get the name of the type that was given as type argument? I'd like to do something similar to typeof(T).FullName, but that actually works...

© Stack Overflow or respective owner

Related posts about c#

Related posts about generics