Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions docs/fundamentals/code-analysis/quality-rules/ca1711.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ helpviewer_keywords:
- IdentifiersShouldNotHaveIncorrectSuffix
author: gewarren
ms.author: gewarren
dev_langs:
- CSharp
---
# CA1711: Identifiers should not have incorrect suffix

Expand Down Expand Up @@ -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<Employee>
{
// 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.
Expand Down
Loading