Punctuators เป็นสัญลักษณ์พิเศษใน C# ใช้จัดกลุ่มหรือแบ่งโค้ด ประกอบด้วย:
] () {}, ; * = #
ตัวอย่างการใช้งาน
=ใช้ในการกำหนดค่าตัวแปรหรือในคลาส- Statement จบด้วย Semicolon:
int a = 10; - Class ใช้ Braces:
class Demo { } - Dictionary:
var d = new Dictionary<string, int>(5); - List Initialization:
List<string> myList = new List<string>() { "mammals", "reptiles", "amphibians" };