mercredi 22 février 2017

Parse complex TypeName from a String in C#

From a CompactFramework, I got a TypeString wich can be a complex type, meaning it can use generics, arrays, etc. That means it can look like Sytem.Tuple’1[[Sytem.String, mscorlib]]. Problem is, I can not use Type.GetType, because the assemblys in the Typestring may be wrong or not present. Is there a lib wich parses the string, and returns a type by searching all types in appdomain for the right one?





Aucun commentaire:

Enregistrer un commentaire