0
完整錯誤: 無法將方法組'CombinationCheck'轉換爲非委託類型'bool'。你打算採用這種方法嗎?無法將方法組轉換爲非委託類型'bool'
我正在嘗試使用bool中的值來確定文本框的值,但似乎無法解決如何操作。任何幫助是極大的讚賞,我得到的錯誤從(CombinationCheck)
bool CombinationCheck(string combination)
{
if (combination.Length > 5)
return true;
else
return false;
}
和
if (CombinationCheck)
text_SafeStatus.Text = "Combination Set";
else
text_SafeStatus.Text = "Combination Not Set";
我已經在你前面的問題回答了這個.. – abdul