1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-10 03:45:41 +00:00

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

View File

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