C#中怎样声明一个bool类型的函数

2025-02-15 23:21:06
推荐回答(1个)
回答1:

bool IsOK(string str)
{
if (str == "OK")
{
return true;
}
return false;
}
上面是个简单的bool返回值的方法