Skip to content

Commit

Permalink
move from C.2 to C.3 (#1183)
Browse files Browse the repository at this point in the history
  • Loading branch information
RexJaeschke authored Oct 9, 2024
1 parent 64cfcec commit 98c940b
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions standard/standard-library.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,16 +322,6 @@ namespace System.Collections.Generic
void Insert(int index, T item);
void RemoveAt(int index);
}

public interface IReadOnlyCollection<out T> : IEnumerable<T>
{
int Count { get; }
}

public interface IReadOnlyList<out T> : IReadOnlyCollection<T>
{
T this [int index] { get; }
}
}

namespace System.Diagnostics
Expand Down Expand Up @@ -487,6 +477,19 @@ namespace System
}
}

namespace System.Collections.Generic
{
public interface IReadOnlyCollection<out T> : IEnumerable<T>
{
int Count { get; }
}

public interface IReadOnlyList<out T> : IReadOnlyCollection<T>
{
T this [int index] { get; }
}
}

namespace System.Linq.Expressions
{
public sealed class Expression<TDelegate>
Expand Down

0 comments on commit 98c940b

Please sign in to comment.