X xenophon May 2, 2005 #1 How to do? I can enumerate them for types in an assembly, but not on an assembly itself. Thanks.
R Richard Blewett [DevelopMentor] May 2, 2005 #2 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.
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.
P Peter Huang [MSFT] May 3, 2005 #3 Hi In addition, you may try the code below. Assembly ass = Assembly.GetExecutingAssembly(); //Get the assembly reference. object[] objs =ass.GetCustomAttributes(true);//enum the attribute Best regards, Peter Huang Microsoft Online Partner Support Get Secure! - www.microsoft.com/security This posting is provided "AS IS" with no warranties, and confers no rights.
Hi In addition, you may try the code below. Assembly ass = Assembly.GetExecutingAssembly(); //Get the assembly reference. object[] objs =ass.GetCustomAttributes(true);//enum the attribute Best regards, Peter Huang Microsoft Online Partner Support Get Secure! - www.microsoft.com/security This posting is provided "AS IS" with no warranties, and confers no rights.
G Guest May 25, 2005 #4 Is there a way to get this info from another assembly in the asm cach without loading it first?