We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
false
1 parent ea56e90 commit 1d9a684Copy full SHA for 1d9a684
docs/csharp/whats-new/csharp-14.md
@@ -37,7 +37,7 @@ public static class Enumerable
37
extension<TSource>(IEnumerable<TSource> source) // extension members for IEnumerable<TSource>
38
{
39
// Extension property:
40
- public bool IsEmpty => source.Any() == false;
+ public bool IsEmpty => !source.Any();
41
// Extension indexer:
42
public TSource this[int index] => source.Skip(index).First();
43
0 commit comments