Skip to content

Latest commit

 

History

History
21 lines (20 loc) · 2.21 KB

NamingRules.md

File metadata and controls

21 lines (20 loc) · 2.21 KB

Naming Rules (SA1300-)

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

Identifier Name Description
SA1300 ElementMustBeginWithUpperCaseLetter The name of a C# element does not begin with an upper-case letter.
SA1301 ElementMustBeginWithLowerCaseLetter There are currently no situations in which this rule will fire.
SA1302 InterfaceNamesMustBeginWithI The name of a C# interface does not begin with the capital letter I.
SA1303 ConstFieldNamesMustBeginWithUpperCaseLetter The name of a constant C# field should begin with an upper-case letter.
SA1304 NonPrivateReadonlyFieldsMustBeginWithUpperCaseLetter The name of a non-private readonly C# field should being with an upper-case letter.
SA1305 FieldNamesMustNotUseHungarianNotation The name of a field or variable in C# uses Hungarian notation.
SA1306 FieldNamesMustBeginWithLowerCaseLetter The name of a field in C# does not begin with a lower-case letter.
SA1307 AccessibleFieldsMustBeginWithUpperCaseLetter The name of a public or internal field in C# does not begin with an upper-case letter.
SA1308 VariableNamesMustNotBePrefixed A field name in C# is prefixed with m_ or s_.
SA1309 FieldNamesMustNotBeginWithUnderscore A field name in C# begins with an underscore.
SA1310 FieldNamesMustNotContainUnderscore A field name in C# contains an underscore.
SA1311 StaticReadonlyFieldsMustBeginWithUpperCaseLetter The name of a static readonly field does not begin with an upper-case letter.
SA1312 VariableNamesMustBeginWithLowerCaseLetter The name of a variable in C# does not begin with a lower-case letter.
SA1313 ParameterNamesMustBeginWithLowerCaseLetter The name of a parameter in C# does not begin with a lower-case letter.
SA1314 TypeParameterNamesMustBeginWithT The name of a C# type parameter does not begin with the capital letter T.
SA1316 TupleElementNamesShouldUseCorrectCasing Element names within a tuple type should have the correct casing.