type variableName;
type variableName = value;

int age = 25;
string name = "John";

const type NAME = value;

const double PI = 3.14;

Console.WriteLine("text");
Console.Write("text");
string input = Console.ReadLine();

if (condition)
{
    // code
}
else if (condition)
{
    // code
}
else
{
    // code
}

switch(value)
{
    case option1:
        // code
        break;
    case option2:
        // code
        break;
    default:
        // code
        break;
}


for (init; condition; update)
{
    // code
}

foreach (var item in collection)
{
    // code
}

while (condition)
{
    // code
}

do
{
    // code
}
while (condition);

returnType MethodName(parameters)
{
    // code
    return value;
}

int Add(int a, int b)
{
    return a + b;
}

class ClassName
{
    // fields, properties, methods
}

ClassName obj = new ClassName();

public type PropertyName { get; set; }

private type field;

public type PropertyName
{
    get { return field; }
    set { field = value; }
}

type[] name = new type[size];
type[] name = { value1, value2 };

List<type> list = new List<type>();
list.Add(value);
list.Remove(value);

try
{
    // code
}
catch (Exception ex)
{
    // handle error
}
finally
{
    // always runs
}

using System;

namespace MyApp
{
    class Program
    {
        static void Main() { }
    }
}

return value;

&&   // AND
||   // OR
!    // NOT

+ - * / %

==  !=  >  <  >=  <=

var x = value ?? defaultValue;
var y = obj?.Property;

enum Name { Option1, Option2, Option3 }

struct Name
{
    public int x;
    public int y;
}

interface IName
{
    void Method();
}

class Child : Parent
{
}

using static System.Math;

(parameters) => expression;



