Fully Qualified Assembly Name

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
 
M

Mattias Sjögren

<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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top