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;
}
{
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;
}
关键字词: