473,320 Members | 2,104 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Getting list of available classes in framework

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
Jan 12 '06 #1
4 978
"_AnonCoward" <ab****@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/>

Jan 12 '06 #2
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
: "_AnonCoward" <ab****@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
Jan 12 '06 #3
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" <ab****@uvwxyz.com> wrote in message
news:%e**************@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

Jan 12 '06 #4
Thanx,

Ralf
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:uj**************@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" <ab****@uvwxyz.com> wrote in message
: news:%e**************@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
: >
: >
:
:
Jan 13 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: toki | last post by:
public class Form1 : System.Windows.Forms.Form { MyClass myclass; public Form1() { myclass = new MyClass(); } }
4
by: J | last post by:
I'm interested in learning C#. I'm an old C programmer (started with MS C ver 3), but haven't used it in quite awhile, spending most of my time in VB, Powerbuilder, PHP, Perl, etc., but not C++. ...
8
by: Rod | last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some reason, opening some ASP.NET applications we wrote is producing the following error message: "The Web server reported...
2
by: JackBlack | last post by:
Using VS.Net 2k3, 2.0 Framework installed... So, I'm sitting here trying to do a very basic SMTP mailer, and I'm struggling with getting either System.Web.Mail (1.1) to work, or System.Net.Mail...
5
by: Les Caudle | last post by:
On a new win2003 Standard install, I installed IIS and ASP.NET. I then installed .NET Framework 2.0 from MS Updates. In the management console, I've added in a .NET Configuration 1.1 snapin. ...
33
by: JamesB | last post by:
I am writing a service that monitors when a particular app is started. Works, but I need to get the user who is currently logged in, and of course Environment.UserName returns the service logon...
4
by: Ross M. Greenberg | last post by:
I'm just entering the world of .Net programming. I first experimented with a local IIS. My ISP provides ASP.net-2 services. I'm interested in starting off with a simple membership-based website...
3
by: tshad | last post by:
I have a file that I converted from VB.Net to C# that works fine in VB.Net when I compile but not in C# using the same libraries. The error I am getting is: PageInit.cs(9,7): error CS0138: A...
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: List of autostart locations Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list all the autostart locations for windows? Ans: Here is...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.