Code Snippet posted by:
Raja | Posted on: 12/4/2009 | Category:
C# Codes | Views: 1756 | Status:
[Member]
|
Alert Moderator
To get all the method name from the class using Reflection, following code can be used.
// .dll name
Assembly asm = Assembly.Load("Mydll");
// Name of the class
Type tsm = asm.GetType("Mydll.ClassName");
foreach (MethodInfo info in tsm.GetMethods())
{
lblMessage.Text += info.Name + "<br />";
}
Thanks
Regards,
Raja, USA