NamingRules.md

April 12, 2019 ยท View on GitHub

Naming Rules (SA1300-)

Rules which enforce naming requirements for members, types, and variables.

IdentifierNameDescription
SA1300ElementMustBeginWithUpperCaseLetterThe name of a C# element does not begin with an upper-case letter.
SA1301ElementMustBeginWithLowerCaseLetterThere are currently no situations in which this rule will fire.
SA1302InterfaceNamesMustBeginWithIThe name of a C# interface does not begin with the capital letter I.
SA1303ConstFieldNamesMustBeginWithUpperCaseLetterThe name of a constant C# field should begin with an upper-case letter.
SA1304NonPrivateReadonlyFieldsMustBeginWithUpperCaseLetterThe name of a non-private readonly C# field should being with an upper-case letter.
SA1305FieldNamesMustNotUseHungarianNotationThe name of a field or variable in C# uses Hungarian notation.
SA1306FieldNamesMustBeginWithLowerCaseLetterThe name of a field in C# does not begin with a lower-case letter.
SA1307AccessibleFieldsMustBeginWithUpperCaseLetterThe name of a public or internal field in C# does not begin with an upper-case letter.
SA1308VariableNamesMustNotBePrefixedA field name in C# is prefixed with m_ or s_.
SA1309FieldNamesMustNotBeginWithUnderscoreA field name in C# begins with an underscore.
SA1310FieldNamesMustNotContainUnderscoreA field name in C# contains an underscore.
SA1311StaticReadonlyFieldsMustBeginWithUpperCaseLetterThe name of a static readonly field does not begin with an upper-case letter.
SA1312VariableNamesMustBeginWithLowerCaseLetterThe name of a variable in C# does not begin with a lower-case letter.
SA1313ParameterNamesMustBeginWithLowerCaseLetterThe name of a parameter in C# does not begin with a lower-case letter.
SA1314TypeParameterNamesMustBeginWithTThe name of a C# type parameter does not begin with the capital letter T.
SA1316TupleElementNamesShouldUseCorrectCasingElement names within a tuple type should have the correct casing.