mercredi 20 mars 2019

Get generic type from class [duplicate]

This question already has an answer here:

Is there any way to obtain the generic type of a class with the name?

I'm trying this:

Type tipo = Type.GetType("MyProject.Classname");

I need to obtain "<"T">" to use in a method:

myMethod'<'T'>'();





Aucun commentaire:

Enregistrer un commentaire