🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Trouble with reflection

#588
From: Joe Mayo
Date: Fri, 20 Aug 2004 01:30
40 lines
1799 bytes
Hi Philippe,

Try this:

Assembly asm = Assembly.LoadWithPartialName("SomeLibrary");

Joe
-- 
Joe Mayo, Author/Instructor
Need C#/.NET training?
visit www.mayosoftware.com
C# Tutorial - www.csharp-station.com



<philippe chessa philippe_chessa[at]compuserve.com> wrote in message
news:4124cec3$1@newsgroups.borland.com...
>
> 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: <41255427$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4124cec3$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,1cdcfec6ff7433b2
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Joe Mayo" <jmayo@nospam.mayosoftware.com>
Newsgroups: borland.public.csharpbuilder.language.csharp
References: <4124cec3$1@newsgroups.borland.com>
Subject: Re: Trouble with reflection 
Date: Thu, 19 Aug 2004 19:30:26 -0600
Lines: 42
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 67.176.104.159
Message-ID: <41255427$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1092965415 67.176.104.159 (19 Aug 2004 18:30:15 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail