System.Index
Represent a type can be used to index a collection either from the start or the end.
namespace System
{
internal readonly struct Index : IEquatable<System.Index>
{
public static System.Index Start { get; }
public static System.Index End { get; }
public int Value { get; }
public bool IsFromEnd { get; }
public Index(int value, bool fromEnd = false);
public static System.Index FromStart(int value);
public static System.Index FromEnd(int value);
public int GetOffset(int length);
public bool Equals(System.Index other);
public static implicit operator System.Index(int value);
}
}