我想同时获得一个函数和一个返回值,或者我需要函数在返回后运行。
private void GiveBackInput(string s)
{
Thread.Sleep(125);
SendKeys.SendWait(s);
}
private bool idontrememberthisname(string hexcode){
... if (...)
{
GiveBackInput("A");
return true;
}
//i need it to be like this
... if (...)
{
return true;
GiveBackInput("A");
}}
编辑:忘了把if语句放在其他方法中
答案 0 :(得分:1)