我有以下類的構造函數:未知的語法錯誤C#
public void GenericProblem(string _operation, int _problems, int _min, int _max) {
private static int operation = (_operation || 1);
}
我在陳述一個}
需要關閉開口{
得到一個錯誤。我可以保證這不是由於此外的任何事情造成的,因爲如果我刪除變量operation
,錯誤消失。也許我只是愚蠢的,但我無法弄清楚。