Built-in types - C# reference | Microsoft Docs
Constants must be initialized during declaration
Variable names cannot start with a number
Reserved keywords shouldn’t be used as variables names. If they have to used it needs to be prefixed with the @ sign
Strings in C# are enclosed in double quotes (”…“)
Characters in C# are enclosed in single quotes (’…‘)
When we compile C# code each datatype is converted to its equivalent .NET datatype
All datatypes in C# are derived or extended from the System.Object
Note
var datatype tells C# to automatically infer datatype
It can only be used if the variable is initialized and declared on the same line
Declare variables in C# using the .NET equivalent types is also possible
The type of an object can be checked by using the FullName
property of the GetType()
class