BindingFlags.DeclaredOnly);
txtMethods.Text=txtMethods.Text+Environment.NewLine+"The number of public methods in "+types[i].Name+" is "+myArrayMethodInfo.Length+Environment.NewLine;
// get all the methods.
txtMethods.Text=txtMethods.Text+getMethodInfo(myArrayMethodInfo);
/*
// Get the nonpublic methods.
MethodInfo[] myArrayMethodInfo1 = myType.GetMethods(BindingFlags.NonPublic
关键词:C#中运用反射显示程序集的所有分类与属性