Defining a Function in C Sharp

Defining a function in C Sharp: