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);
}
foreach (MethodInfo m in mi)
{
MessageBox.Show(m.Name);
}
PropertyInfo[] pi = typeof(class1).GetProperties();
foreach (PropertyInfo p in pi)
{
MessageBox.Show(p.Name);
}
No comments:
Post a Comment