mercredi 1 novembre 2017

What would be the easiest way to get the runtime type with the generic arguments reset?

let t = typeof<HashSet<Dictionary<int, string>>>
t.Assembly.GetType(t.Namespace + "." + t.Name)

By that I mean something equivalent to the above, but without having to traverse the Assembly to find the original type. Mono.Cecil has Resolve for this I think, but I am not sure how to do it with the standard reflection.





Aucun commentaire:

Enregistrer un commentaire