I'd like to output (programmatically - C#) a list of all classes in my assembly.
Any hints or sample code how to do this? Reflection?
Use Assembly.GetTypes. For example:
Assembly.GetTypes
Assembly mscorlib = typeof(string).Assembly; foreach (Type type in mscorlib.GetTypes()) { Console.WriteLine(type.FullName); }
1.4m articles
1.4m replys
5 comments
56.9k users