What is the C# standard for capitialising method names?
C#Naming ConventionsC# Problem Overview
What is the C# standard for capitialising method names? Is it:
MyClass.MyMethod()
or
MyClass.myMethod()
?
C# Solutions
Solution 1 - C#
The first one is right following the .NET Capitalization Conventions
Solution 2 - C#
First one is standard in C#, second is standard in Java
Solution 3 - C#
C# Method are normally in PascalCase. See the guidelines here.
Solution 4 - C#
Microsoft recommend to Use The first Approach.
Solution 5 - C#
Pascal case is the standard for .NET in general and C# in particular.
Solution 6 - C#
Don't believe there is a standard, It's what ever you, and those you work with prefer. The most common i've seen is PascalCasing for Methods and Camel for private variables etc.
Solution 7 - C#
.NET Naming standards say that you should use Pascal Case:
Solution 8 - C#
Camel case vs proper case. The 100% Approved Right Way (TM) for C# is the latter.