By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,364 Members | 1,254 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,364 IT Pros & Developers. It's quick & easy.

Fully Qualified Assembly Name

P: n/a
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

Nov 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
<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

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 22 '05 #2

P: n/a
Thanks Mattias. My mistake that bit.

"Mattias Sjögren" wrote:
<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

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Nov 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.