diff --git a/docs/fundamentals/code-analysis/quality-rules/ca1711.md b/docs/fundamentals/code-analysis/quality-rules/ca1711.md index 21bd926dc22f1..3e0e67fb6a4fb 100644 --- a/docs/fundamentals/code-analysis/quality-rules/ca1711.md +++ b/docs/fundamentals/code-analysis/quality-rules/ca1711.md @@ -10,6 +10,8 @@ helpviewer_keywords: - IdentifiersShouldNotHaveIncorrectSuffix author: gewarren ms.author: gewarren +dev_langs: + - CSharp --- # CA1711: Identifiers should not have incorrect suffix @@ -61,6 +63,21 @@ Naming conventions provide a common look for libraries that target the .NET comm Remove the suffix from the type name. +## Example + +```csharp +class BadEmployeeCollection { } // Violates CA1711 + +// Good +class Employee { } +class GoodEmployeeCollection : ICollection +{ + // Implementations +} + +class Employees { } // Good +``` + ## When to suppress warnings Do not suppress a warning from this rule unless the suffix has an unambiguous meaning in the application domain.