Shared naming conventions allow teams to collaborate efficiently. This rule checks whether or not method and property names are PascalCased. To reduce noise, two consecutive upper case characters are allowed unless they form the whole name. So, MyXMethod is compliant, but XM on its own is not.

Noncompliant Code Example

public int doSomething() {...}

Compliant Solution

public int DoSomething() {...}

Exceptions

void My_method(){...} // valid
void My_method_(){...} // invalid, leading and trailing underscores are reported

See

Microsoft Capitalization Conventions