diff --git a/docs/csharp/whats-new/csharp-14.md b/docs/csharp/whats-new/csharp-14.md index 1ea242f0f1953..5c2620bea8fb5 100644 --- a/docs/csharp/whats-new/csharp-14.md +++ b/docs/csharp/whats-new/csharp-14.md @@ -37,7 +37,7 @@ public static class Enumerable extension(IEnumerable source) // extension members for IEnumerable { // Extension property: - public bool IsEmpty => source.Any() == false; + public bool IsEmpty => !source.Any(); // Extension indexer: public TSource this[int index] => source.Skip(index).First();