Home All Groups Group Topic Archive Search About

Getting list of available classes in framework

Author
12 Jan 2006 8:46 PM
_AnonCoward
It occurred to me recently that I would like to programmatically get a list
of all the classes available to me for a given framework (i.e.: 1.0, 1.1,
2.0). Any ideas on how to approach that problem?


Thanx,

Ralf

Author
12 Jan 2006 10:55 PM
Herfried K. Wagner [MVP]
"_AnonCoward" <abc***@uvwxyz.com> schrieb:
> It occurred to me recently that I would like to programmatically get a
> list
> of all the classes available to me for a given framework (i.e.: 1.0, 1.1,
> 2.0). Any ideas on how to approach that problem?

Check out the 'Assembly' class.  This class can be used to load assemblies
and determine the types defined in the assembly.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
12 Jan 2006 11:04 PM
_AnonCoward
Show quote Hide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:%238I5Wt8FGHA.1032@TK2MSFTNGP15.phx.gbl...
: "_AnonCoward" <abc***@uvwxyz.com> schrieb:
: > It occurred to me recently that I would like to programmatically get a
: > list
: > of all the classes available to me for a given framework (i.e.: 1.0,
1.1,
: > 2.0). Any ideas on how to approach that problem?
:
: Check out the 'Assembly' class.  This class can be used to load assemblies
: and determine the types defined in the assembly.
:
: --
: M S   Herfried K. Wagner
: M V P  <URL:http://dotnet.mvps.org/>
: V B   <URL:http://classicvb.org/petition/>


Will do. Thanx,

Ralf
Author
12 Jan 2006 11:25 PM
Ken Tucker [MVP]
Hi,

            Maybe this vb 2005 code will help.  It will list all classes for
the loaded assemblies.

        For Each asm As Reflection.Assembly In
My.Application.Info.LoadedAssemblies
            For Each t As Type In asm.GetTypes
                Trace.WriteLine(String.Format("Name {0} Namespace {1}",
t.Name, t.Namespace))
            Next
        Next


Ken
----------------------
Show quoteHide quote
"_AnonCoward" <abc***@uvwxyz.com> wrote in message
news:%ezxf.678$0h.147@tornado.southeast.rr.com...
> It occurred to me recently that I would like to programmatically get a
> list
> of all the classes available to me for a given framework (i.e.: 1.0, 1.1,
> 2.0). Any ideas on how to approach that problem?
>
>
> Thanx,
>
> Ralf
>
>
Author
13 Jan 2006 3:20 AM
_AnonCoward
Thanx,

Ralf


Show quoteHide quote
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:ujfN598FGHA.2708@TK2MSFTNGP11.phx.gbl...
: Hi,
:
:            Maybe this vb 2005 code will help.  It will list all classes
for
: the loaded assemblies.
:
:        For Each asm As Reflection.Assembly In
: My.Application.Info.LoadedAssemblies
:            For Each t As Type In asm.GetTypes
:                Trace.WriteLine(String.Format("Name {0} Namespace {1}",
: t.Name, t.Namespace))
:            Next
:        Next
:
:
: Ken
: ----------------------
: "_AnonCoward" <abc***@uvwxyz.com> wrote in message
: news:%ezxf.678$0h.147@tornado.southeast.rr.com...
: > It occurred to me recently that I would like to programmatically get a
: > list
: > of all the classes available to me for a given framework (i.e.: 1.0,
1.1,
: > 2.0). Any ideas on how to approach that problem?
: >
: >
: > Thanx,
: >
: > Ralf
: >
: >
:
: