Property | Value |
---|---|
Id | RR0116 |
Title | Invert LINQ method call |
Syntax | System.Linq.Enumerable.Any(Func<T, bool>) or System.Linq.Enumerable.All(Func<T, bool>) |
Span | method name |
Enabled by Default | ✓ |
if (items.Any(predicate)
{
}
if (items.All(!predicate)
{
}
if (items.All(predicate)
{
}
if (items.Any(!predicate)
{
}
(Generated with DotMarkdown)