samedi 30 janvier 2016

C# get generic parameter name using reflection

say that I have a C# class like this:

class MyClass<Tkey,Tvalue>{}

How do I get "Tkey" and "Tvalue" from given Type instance? I need the parameter name, not Type.





Aucun commentaire:

Enregistrer un commentaire