ภาพรวม ใช้ operator default เพื่อดึงค่าเริ่มต้นของชนิดข้อมูล สำหรับ bool ค่าเริ่มต้นคือ false รูปแบบการใช้งาน bool a = default(bool); // false // หรือ C# 7.1+: bool b = default; // type inference ตัวอย่างโค้ดเต็ม using System; public class Demo { public static void Main() { bool