All the built-in Types in C# are the fallowing and the classes they go to
void = System.Void : Nothing and in C# can only be used as a return type
bool = System.Boolean : This is a Boolean (true, false) value
short = System.Int16 : this is a small 16 bit Integer number
ushort = System.UInt16 : a Unsigned 16 bit integer all numbers are positive and cannot be negative
int = System.Int32 : This is your basic Integer number
uint = System.UInt32 : This is an unsigned Integer Number all numbers are positive and cannot be negative
long = System.Int64 : a Integer that is 2 times the size of your basic int
ulong = System.UInt64 : a Unsigned 64 bit Integer agian all numbers are positive and cannot be negative
float = System.Single : single-precision floating-point number. Numbers must have a f after it like this 10.0f
double = System.Double : double-precision floating-point number. Numbers do not have to have a f but it is recommended to have a decimal point like this 1.0
char = System.Char : A single Character (when assigned must be in single quotes like this 'c'
string = System.String : A string Used to represent words and Characters
My Youtube channel
Custom Search
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment