表示布尔值 true。
// cs_keyword_true.cs using System; class TestClass { static void Main() { bool a = true; Console.WriteLine( a ? "yes" : "no" ); } }
yes
有关更多信息,请参见 C# 语言规范中的以下各章节:
2.4.4.1 布尔文本