Reflection is the ability to find out information about objects, the application details (assemblies), its metadata at run-time.
Assembly a = Assembly.LoadFile(@"c:\Business.dll");
Response.Write("Location **** "+a.CodeBase);
Response.Write("
EntryPoint **** " + a.EntryPoint);
Response.Write("
FullName **** " + a.FullName);
Type[] types = a.GetTypes();
foreach (Type t in types)
{
Response.Write("
Type is {0} " + t);
}
Untitled Page
!doctype>
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment