Get Method and Property Information of class Programmatically using Reflection in c#
By j Miracle
Here i will show how you can methodinfo and propertyinfo of class using Reflection programmatically in c#
using System.Reflection;
MethodInfo[] mi = typeof(class1).GetMethods();
foreach (MethodInfo m in mi)
{
MessageBox.Show(m.Name);
}
PropertyInfo[] pi = typeof(class1).GetProperties();
foreach (PropertyInfo p in pi)
{
MessageBox.Show(p.Name);
}
Get Method and Property Information of class Programmatically using Reflection in c# (1420 Views)