c# code function code example
Example 1: c# function
public void SayHello()
{
Console.WriteLine("Hello") ;
}
//as basic as it gets
//for a function
Example 2: function c#
public int AddNumbers(int number1, int number2)
{
int result = number1 + number2;
return result;
}