You are on page 1of 2

Arrays

int[] array = new int[] { 1, 2, 3, 4, 5 };

Methods
[static] <return_type> <method_name>([<param_list>])

Example:
static void Main(string[] args)

Modifiers:
public static void PrintLogo()
{
Console.WriteLine("Microsoft");
Console.WriteLine("www.microsoft.com");
}
Public is an access modifier.

Invoking a Method :
PrintLogo();

Returns:
static long Multiply(int number1, int number2)
{
long result = number1 * number2;
return result;
}

C# is a general-purpose, multi-paradigm programming language. C# encompasses static


typing, strong typing, lexically scoped, imperative, declarative, functional, generic, object-
oriented, and component-oriented programming disciplines.
C# is pronounced as "C-Sharp". It is an object-oriented programming language provided
by Microsoft that runs on .Net Framework. 
Python is an interpreted, object-oriented, high-level programming language with dynamic
semantics.

You might also like