0

What is best practice for method fields or parameters (Camel or Pascal):

public string DoSomething(string documentName, string firstName)
{
    return string.Empty;    
}

public string DoSomething(string DocumentName, string FirstName)
{
    return string.Empty;    
}
TylerH
  • 20,816
  • 57
  • 73
  • 92
obautista
  • 3,113
  • 12
  • 44
  • 76

1 Answers1

2

You should use camelCasing for parameter names. So option number 1 is correct.
It is actually not even a matter of opinion, as seen by the msdn link provided in the comments:

camelPascal

Idos
  • 14,552
  • 14
  • 54
  • 70