Please enable JavaScript.
Coggle requires JavaScript to display documents.
primitive types, non-primitive types, define a var or const, in C# we have…
primitive types
integral numbers
short
int
byte
long
real numbers
double
for math destination
decimal
usecase is like money
float
Boolean
bool
character
char
non-primitive types
string
strings are mutable
array(in C# represents a fixed number of variables in particular type)
class
enum
list
define a var or const
const string name= "sasan";
var name = "sasan";
string name = "sasan";
in C# we have two main types
value types
structures
all primitive types
reference types
classes
string
array
the difference of structures and classes are in memory management
x+"babak"
its concatination ,a way of adding strings together
C# is statically-typed language .it means every variable has a datatype
in c# variables are case-sensitive
variables=stor some values
identifier=what we call variable
expression=evaluates to the value
literal=actual value
int a;declaration
a=5;initialization
the datatype is the type of the value that variable can store
global variable