Is there any way to get number of parameters in unbound generic type? For example:
f(typeof(List<>)) => 1 f(typeof(Dictionary<,>)) => 2
UPD
I know about getting number from Type.Name but maybe there is a way to get from Type directly
Aucun commentaire:
Enregistrer un commentaire