C# iku statically typed — variabel duwe tipe sing dikenal ing wektu compile time. Sampeyan bisa nyatakake variabel kanthi tipe sing eksplisit utawa nggunakake var kanggo type inference (compiler deduksi tipe saka nilai), nanging cara apa pun tipe kasebut tetep.
Nyatakake variabel
count = ;
name = ;
price = ;
active = ;
age = ;
message = ;
items = List<>();
