Function C# - OmIndia

Teach To India

Sunday, July 09, 2017

Function C#







<visibility> <return type> <name>(<parameters>)
{
 <function code>
}

public void DoStuff()
{
    Console.WriteLine("I'm doing something...");
}
public int AddNumbers(int number1, int number2)
{
    int result = number1 + number2;
    return result;
}

No comments:

Post a Comment

Comments

Popular