public TResult this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (index < 0 || index >= source.Count) { Throw.IndexOutOfRangeException(); } return(selector.Invoke(source.Array ![index + source.Offset]));
public readonly TSource this[int index] { get { if (index != 0) { Throw.IndexOutOfRangeException(); } return(value); } }
public readonly int this[int index] { get { if (index < 0 || index >= Count) { Throw.IndexOutOfRangeException(); } return(index + start); } }
public TResult this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (index < 0 || index >= source.Length) { Throw.IndexOutOfRangeException(); } return(selector.Invoke(source.Span[index])); } }
public TResult this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (index < 0 || index >= count) { Throw.IndexOutOfRangeException(); } return(selector.Invoke(start + index)); } }
public readonly TSource this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (index != 0) { Throw.IndexOutOfRangeException(); } return(value); } }
public TSource this[int index] => Throw.IndexOutOfRangeException <TSource>();