主页 > 编程资料 > C# >
发布时间:2015-09-26 作者:网络 阅读:186次
 private string[] getMethodList(System.Type myType)
  {
   int i,l;
   MethodInfo myMethodInfo;
   MethodInfo[] myArrayMethodInfo = myType.GetMethods(BindingFlags.Public|BindingFlags.Instance|BindingFlags.DeclaredOnly,',',');
   l = myArrayMethodInfo.Length;
   string[] methodList=new string[l];
   for(i=0;i   {
    myMethodInfo = (MethodInfo)myArrayMethodInfo[i];
    methodList[i] = myMethodInfo.Name ;
   }
   return methodList;
  }
关键字词: