Fix CS1574 in ListExtensions

Count property is defined for IReadOnlyCollection<T> not IReadOnlyList<T>

Oops
This commit is contained in:
Oliver Booth 2023-02-26 12:27:12 +00:00
parent ca1b1ccbf2
commit f0bce2983a
No known key found for this signature in database
GPG Key ID: 20BEB9DC87961025
1 changed files with 2 additions and 2 deletions

View File

@ -330,7 +330,7 @@ public static class ListExtensions
/// </returns>
/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
/// <exception cref="ArgumentOutOfRangeException">
/// <paramref name="start" /> is less than zero or greater than <see cref="IReadOnlyList{T}.Count" />.
/// <paramref name="start" /> is less than zero or greater than <see cref="IReadOnlyCollection{T}.Count" />.
/// </exception>
public static IReadOnlyList<T> Slice<T>(this IReadOnlyList<T> source, int start)
{
@ -359,7 +359,7 @@ public static class ListExtensions
/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
/// <exception cref="ArgumentOutOfRangeException">
/// <paramref name="start" /> or <paramref name="start" /> + <paramref name="length" /> is less than zero or greater than
/// <see cref="IReadOnlyList{T}.Count" />.
/// <see cref="IReadOnlyCollection{T}.Count" />.
/// </exception>
public static IReadOnlyList<T> Slice<T>(this IReadOnlyList<T> source, int start, int length)
{