true 字面常数(C# 参考)true literal (C# Reference)

表示布尔trueRepresents the bool value true:

bool check = true;
Console.WriteLine(check ? "Passed" : "Not passed");
// Output: 
// Passed

请参阅See also