Parsing assembly qualified name?

Joannes Vermorel picture Joannes Vermorel · Sep 11, 2009 · Viewed 10.3k times · Source

I would like to parse an assembly qualified name in .NET 3.5. In particular, the assembly itself is not available, it's just the name. I can think of many ways of doing it by hand but I guess I might be missing some feature to do that in the system libraries. Any suggestion?

Answer

Mattias S picture Mattias S · Sep 11, 2009

The AssemblyName class can parse the assembly name for you, just pass in the string to its constructor. If you have an assembly qualified type name, I think you'll have to strip of the type part of the string first (ie everything up to the first comma).