SA1314.md
June 22, 2017 ยท View on GitHub
SA1314
| TypeName | SA1314TypeParameterNamesMustBeginWithT |
| CheckId | SA1314 |
| Category | Naming Rules |
:memo: This rule is new for StyleCop Analyzers, and was not present in StyleCop Classic.
Cause
The name of a C# type parameter does not begin with the capital letter T.
Rule description
A violation of this rule occurs when the name of a C# type parameter does not begin with the capital letter T. Type parameter names should always begin with T. For example, T or TKey.
How to fix violations
To fix a violation of this rule, add the capital letter T to the front of the type parameter name.
How to suppress violations
[SuppressMessage("StyleCop.CSharp.NamingRules", "SA1314:TypeParameterNamesMustBeginWithT", Justification = "Reviewed.")]
#pragma warning disable SA1314 // Type parameter names should begin with T
#pragma warning restore SA1314 // Type parameter names should begin with T