4 instantiations of Index
Microsoft.Extensions.AI.Abstractions (4)
src\LegacySupport\SystemIndex\Index.cs (4)
50public static Index Start => new Index(0); 53public static Index End => new Index(~0); 65return new Index(value); 78return new Index(~value);
9 references to Index
Microsoft.Extensions.AI.Abstractions (9)
src\LegacySupport\SystemIndex\Index.cs (9)
19internal readonly struct Index : IEquatable<Index> 50public static Index Start => new Index(0); 53public static Index End => new Index(~0); 58public static Index FromStart(int value) 71public static Index FromEnd(int value) 122public override bool Equals([NotNullWhen(true)] object? value) => value is Index && _value == ((Index)value)._value; 126public bool Equals(Index other) => _value == other._value; 132public static implicit operator Index(int value) => FromStart(value);