class Program
{
static void Main(string[] args)
{
Type t=typeof(Form1);
Console.WriteLine(t.ToString());
foreach (MethodInfo mi in t.GetMethods())
{
Console.WriteLine(mi.ToString());
}
}
}
得到所有的方法