Skip to content

Commit aaf562b

Browse files
authored
Remove extension indexer from "What's New for C# 14"
1 parent 7792fac commit aaf562b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

docs/csharp/whats-new/csharp-14.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ public static class Enumerable
4040
{
4141
// Extension property:
4242
public bool IsEmpty => !source.Any();
43-
// Extension indexer:
44-
public TSource this[int index] => source.Skip(index).First();
4543

4644
// Extension method:
4745
public IEnumerable<TSource> Where(Func<TSource, bool> predicate) { ... }

0 commit comments

Comments
 (0)