using System;
public class Program
{
//Δημιουργία Συνάρτησης
public void DoSomething()
//function code
Console.WriteLine("Αυτό είναι μήνυμα από τη συνάρτηση DoSomething()");
} //end function
public void Main()
Console.WriteLine("Hello World");
//κλήση της συνάρτησης
DoSomething();
} //end main
} //end class