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:
parent
ca1b1ccbf2
commit
f0bce2983a
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user