Get hold of an assembly reference with by:
Assembly.GetExecutingAssembly();
obj.GetType().Assembly;
Assembly.Load/From();
depending how your code relates to the assembly in question
Regards
Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk
How to do? I can enumerate them for types in an assembly, but not on
an assembly itself.
Thanks.
Hi
In addition, you may try the code below.
Assembly a.s = Assembly.GetExecutingAssembly(); //Get the assembly
reference.
object[] objs =a.s.GetCustomAttributes(true);//enum the attribute
Best regards,
Peter Huang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Richard - 25 May 2005 14:38 GMT
Is there a way to get this info from another assembly in the asm cach
without loading it first?
> Hi
>
[quoted text clipped - 11 lines]
> Get Secure! - www.microsoft.com/security
> This posting is provided "AS IS" with no warranties, and confers no rights.