0% found this document useful (0 votes)
6 views2 pages

1# C# Note

Uploaded by

Lesunter KLter
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

1# C# Note

Uploaded by

Lesunter KLter
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Console.

Write("helo tae \n tae ");

# > greater than < less than

# \n > To move down/below ( tae )

# char > ( Data Type ), sex > ( idendifier > Name of Variable ),
M > ( Variables ) ex.sentence , number , Word

! ! !
v v v

char sex = 'M';


string name = "DarKLter";
int age = 19;
bool isTall = true;
double grade = 95.5;
float average = 95.5f;

///////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////

/*# char > int > long > float > double

sbyte > Convert.ToSByte


byte > Convert.ToByte
short > Convert.ToInt16
ushort > Convert.ToUInt16

int > Convert.ToInt32


uint > Convert.ToUInt32

long > Convert.ToInt64


ulong > Convert.ToUInt64
nint > Convert.ToIntPtr
nuint > Convert.ToUIntPtr

bool > Convert.ToBoolean


char > Convert.ToChar
float > Convert.ToSingle
double > Convert.ToDouble
string > Convert.ToString

*/

.ToString() > Convert.ToString

///////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////
# ++ > add 1 , -- > minus 1

///////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////

CurrentCulture
InvariantCulture
Ordinal

///////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////

Switch Statement > Only [ int & char / may be string


> Same with [ if / else statement]

///////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////

*2D ARRAY*

.ToString()
.GetLength()
.Length

0 > ROWS , 1 > COLUM

*KeyWord*

value
base.
virtual & override

///////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////

void > nothing


string > string < " "
char > char < ''
bool > bool < true or false
int > int < 10
float > float < 10.10
double > double < 10.101010

///////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////

public static readonly float PI = 3.14f; > readonly > cant change

public static readonly float GRAVITY = 9.8f;

///////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////

this.name > to access the GLOBAL VARIABLE

You might also like