Methods - Basics
Methods with no parameters and no return type
static void Main(string[] args)
{
// Calling the function
BasicFunction();
}
// Function
static void BasicFunction()
{
Console.WriteLine("This is a function.");
}Methods that return a value
Methods that take in parameters
Methods with parameters and a return type
Last updated