🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.language.csharp
Article #587

Trouble with reflection

#587
From: philippe chessa philippechessa a...
Date: Thu, 19 Aug 2004 16:01
21 lines
1370 bytes
Hi all,

I am trying to find types present in an assembly
It works fine for a file not in the GAC, with the following code

	Assembly asm Assembly.LoadFrom(filename);
	Type[] types = asm.GetTypes();
	foreach (Type type in types)
	{
		// Do something with type
	}

But I have not found the way to do the same thing for assemblies in the GAC.
I came with the poor solution of a DOS copy of the DLL files from the \Windows\Assembly folder, but it fails for MSCORELIB.DLL

What am I missing ?

Thanks in advance for your help.

Philippe
Technical Details
Message-ID: <4124cec3$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newscore.univie.ac.at!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,1cdcfec6ff7433b2,start
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "philippe chessa" philippe_chessa[at]compuserve.com
Sender: "philippe chessa" philippe_chessa[at]compuserve.com
Reply-To: "philippe chessa" philippe_chessa[at]compuserve.com
Subject: Trouble with reflection 
Newsgroups: borland.public.csharpbuilder.language.csharp
X-User-Info: 82.120.209.123     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <4124cec3$1@newsgroups.borland.com>
Date: 19 Aug 2004 09:01:07 -0700
X-Trace: newsgroups.borland.com 1092931267 207.105.83.66 (19 Aug 2004 09:01:07 -0700)
Lines: 21
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newscore.univie.ac.at!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail