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,799
  • 66
  • 75
  • 101
obautista
  • 3,517
  • 13
  • 48
  • 83

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
  • 15,053
  • 14
  • 60
  • 75