0

What are valid c# variable names?

21st Dec 2016, 3:06 AM
salman
salman - avatar
2 Antworten
+ 7
A variable must start with a letter (uppercase or lowercase) or an underscore (not recommended). It must only contain letters, numbers, or underscores, no whitespace, dashes, or other special symbols.
21st Dec 2016, 5:52 AM
Tamra
Tamra - avatar
+ 1
anything can be a variable name as long as it doesn't start with a number.
21st Dec 2016, 3:09 AM
Kataruna
Kataruna - avatar