Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get list of the classes in casual assembly
Message
From
12/03/2010 08:25:00
 
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01453908
Message ID:
01454142
Views:
32
>
>My version returns a list Modules each containing a list of Classes. You'd need something like:
 List<IEnumerable<Type>> list = 
> (from m in Assembly.Load(Assemblyname).GetModules() select m.GetTypes().Where(x => x.IsClass)).ToList();
>
>foreach ( IEnumerable<Type> t in list)
>        {
>              foreach (Type className in t)
>              {
>                 Console.WriteLine("{0}", className.FullName);
>               }
>        }
Yes, I figured that out - see other message with AddRange() in GetModInfo()
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform