Description
Chained string equality comparisons (s == “a” || s == “b”) can be collapsed into a single EqualsAnyOrdinal/EqualsAnyIgnoreCase call.Properties
- Category: Roslyn Utilities
- Severity: Info
- Enabled by default: True
- Code fix available: False
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Chained string equality comparisons (s == “a” || s == “b”) can be collapsed into a single EqualsAnyOrdinal/EqualsAnyIgnoreCase call
dotnet_diagnostic.AL0125.severity = info
Was this page helpful?
