![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What are punctuators in C#?
Punctuators are used in C# as special symbols to a group or divide the code. It includes −
] () {}, ; * = #
For example, = gets included in a class or even while declaring a variable. Statement ends with a semi-colon −
int a = 10;
In a class, the braces are used −
class Demo { }
While declaring a dictionary −
var d = new Dictionary<string, int>(5);
It is also used while declaring and initializing a list −
List<string> myList = new List<string>() { "mammals", "reptiles", "amphibians" };
Advertisements