bool是System.Boolean 的别名.bool是C#中的,Boolean是.net Framework中的。
// using System; // 假设 using System; 被注释掉了 class Program { static void Main() { bool isOK = false; // 没问题 Boolean isNotOK = true; // error CS0246: 找不到类型或命名空间名称“Boolean”(是否缺少 using 指令或程序集引用?) } }