110,536
社区成员
发帖
与我相关
我的任务
分享
public bool FunctionA()
{
try
{
if(条件判断)
{
DoSomething...
return true;
}
else
{
DoSomething...
return false;
}
}
catch(Exception ex)
{
MessageBox.Show(ex.Message.ToString());
return false;
}
}
public bool FunctionA(bool t)
{
try
{
if (t)
{
//DoSomething...
return true;
}
else
{
//DoSomething...
return false;
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message.ToString());
return false;
}
}