/// <inheritdoc /> public TResult this[int index] { get { IReadOnlyListContracts.Indexer(this, index); return(this.converter(this.source[index])); } }
/// <inheritdoc /> public T this[int index] { get { IReadOnlyListContracts.Indexer(this, index); return(this.list[index + this.startIndex]); } }
/// <inheritdoc /> public T this[int index] { get { IReadOnlyListContracts.Indexer(this, index); foreach (var list in this.lists) { if (index.IsIn(list.GetIndexRange())) { return(list[index]); } else { index -= list.Count; } } throw new UnreachableCodeException("Contracts should guarantee this line is never reached."); } }