Load Attribute on Assembly with CF

T

Thibaud Bouquely

Hello

I want load Attribute on my assembly with this type of code :

static private void LoadAssembly(Assembly a)
{
foreach(Attribute attr in Attribute.GetCustomAttributes(a, typeof
(MyAttributeAttribute), false))
{
.... do something
}
}

but NotSupprtedException is return

I didnot another way to do this, could you help me please ?

(Rq : I do the same thing on types in Assembly, and everything work fine
....)
 

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