C# Naming Convention > Method Naming

PascalCase

  • Begin with an uppercase letter
  • Preferably a verb e.g. GetOrder(), SendMessage()
  • If the name contains multiple words, capitalize first letter of every word e.g. GetXmlParser()
 public int FindMinimum(int number1, int number2)()
{
    ...
}

Contributors

farbodsaraf