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