用C#作为参数的PASS方法
public int Method1(string){
... do something return myInt;}public int Method2(string){
... do something different return myInt;}public bool RunTheMethod([Method Name passed in here] myMethodName){
... do stuff int i = myMethodName("My String");
... do more stuff return true;}public bool Test(){
return RunTheMethod(Method1);}
肥皂起泡泡
随时随地看视频慕课网APP