I have ASP.NET Application:
I have added 5 classes with different Namespacess in App_Code folder..
In Default.aspx.cs file.. I just want to get the list of available Namespaces in App_Code folder:
I tried :
AppDomain.CurrentDomain.GetAssemblies();
but i didn’t find Namespace that is available in App_Code Folder
How can i find it??
Thanks
You can get the namespaces of an assembly from the types it contains:
Assembly does not contain a hierarchy to the types, but when accessing a type the namespace can be found using the Namespace property.