All Class names

  • Thread starter Thread starter Erkan KURTULUÞ
  • Start date Start date
E

Erkan KURTULUÞ

Hi,

How can i found all class names in a namespace?. My aim is reach all
attributes of classes.

Best Regards
Erkan
 
Hi,

Have you tried using reflection? You can load an assembly and get all the
information from it, including method names and types. Check the MSDN for
examples. (System.Reflection)

Cheers
Salva
 
The only problem is you cannot guarantee to find all the classes in a *namespace* as a namespace can span multiple assemblies.

try writing the folloing and compiling it

namespace System.Data
{
public class MyNewConnection
{
}
}

this creates a new class in the System.Data namespace.

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

Hi,

Have you tried using reflection? You can load an assembly and get all the
information from it, including method names and types. Check the MSDN for
examples. (System.Reflection)

Cheers
Salva

Erkan KURTULUÞ said:
Hi,

How can i found all class names in a namespace?. My aim is reach all
attributes of classes.

Best Regards
Erkan

[microsoft.public.dotnet.languages.csharp]
 
Back
Top