HighTechTalks DotNet Forums  

how do I retrieve by reflection all the types in web application?

Dotnet Framework (SDK) microsoft.public.dotnet.framework.sdk


Discuss how do I retrieve by reflection all the types in web application? in the Dotnet Framework (SDK) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Ronen Tidhar
 
Posts: n/a

Default how do I retrieve by reflection all the types in web application? - 03-15-2006 , 02:11 AM






I would like your help to find out how do I retrieve by reflection all the
types in web application?

In VS 2003 I used to do:

public class Global : System.Web.HttpApplication
{
protected void Application_Start(Object sender, EventArgs e)
{
Type myType = typeof(Global);
Module module = myType.Module;
Type[] types = module.GetTypes();
}
}

The thing is that it was changed in VS 2005.
There are several assemblies depend on project configuration (for each web
page, master page, different language etc…)
Now when I do so I get only types under App_Code, I don’t get the reset
types because they sit in different assemblies.
I also couldn’t find the way to find which assemblies are used on the web
application.

10x for your help.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.