MP0002
Uses IEnumerable as a module result instead of a concrete collection.
| Property | Value |
|---|---|
| Category | Usage |
| Default severity | Error |
| Availability | Public analyzer package |
Configure severity
.editorconfig
dotnet_diagnostic.MP0002.severity = error
Use none to disable the rule, or silent, suggestion, warning, or error to change its severity.
Suppress a specific occurrence
#pragma warning disable MP0002
// Code that intentionally violates MP0002.
#pragma warning restore MP0002