TypeName | SA1314TypeParameterNamesMustBeginWithT |
CheckId | SA1314 |
Category | Naming Rules |
📝 This rule is new for StyleCop Analyzers, and was not present in StyleCop Classic.
The name of a C# type parameter does not begin with the capital letter T.
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.
To fix a violation of this rule, add the capital letter T to the front of the type parameter name.
[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