+ 2

What's the difference?

static string Person(string name) {} vs static string person(string name) {}

3rd Nov 2022, 7:21 AM
Mozzie
Mozzie - avatar
1 Resposta
+ 2
The difference is uppercase and lowercase P. In C# it's a convention to begin method names with uppercase letters.
3rd Nov 2022, 7:43 AM
Tibor Santa
Tibor Santa - avatar