C# Tutorials

Download as docx, pdf, or txt
Download as docx, pdf, or txt
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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy