Fully Qualified Assembly Name

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

Is there an easy way to decode type names from a config file. For example I have the following element in my config file:

<MyElement type = "myassembly, myclass" />

I want to get the assembly name from this string and then get the class name once the assembly has been loaded. The assembly name may also be a fully qualified name, i.e. has Version and PublicKey info.

Thanks for your help
 
<MyElement type = "myassembly, myclass" />

The order should be "myclass, myassembly". To "decode" it, you can
simply take everything before the first comma as the type name, and
everything after it as the assembly name.



Mattias
 
Thanks Mattias. My mistake that bit.

Mattias Sjögren said:
The order should be "myclass, myassembly". To "decode" it, you can
simply take everything before the first comma as the type name, and
everything after it as the assembly name.



Mattias
 
Back
Top