12 implementations of NegativeOne
System.Private.CoreLib (9)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1809
static decimal ISignedNumber<decimal>.
NegativeOne
=> NegativeOne;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
1831
static double ISignedNumber<double>.
NegativeOne
=> NegativeOne;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
1346
static short ISignedNumber<short>.
NegativeOne
=> NegativeOne;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
1397
static int ISignedNumber<int>.
NegativeOne
=> NegativeOne;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
1400
static long ISignedNumber<long>.
NegativeOne
=> NegativeOne;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
1413
static nint ISignedNumber<nint>.
NegativeOne
=> -1;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
1775
static NFloat ISignedNumber<NFloat>.
NegativeOne
=> new NFloat(NativeType.NegativeOne);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
1325
static sbyte ISignedNumber<sbyte>.
NegativeOne
=> NegativeOne;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
1745
static float ISignedNumber<float>.
NegativeOne
=> NegativeOne;
System.Runtime.Numerics (3)
System\Numerics\BigInteger.cs (1)
5536
static BigInteger ISignedNumber<BigInteger>.
NegativeOne
=> MinusOne;
System\Numerics\Complex.cs (1)
859
static Complex ISignedNumber<Complex>.
NegativeOne
=> new(-1.0, 0.0);
System\Numerics\Complex.Generic.cs (1)
2065
static Complex<T> ISignedNumber<Complex<T>>.
NegativeOne
=> new(-T.One, T.Zero);
29 references to NegativeOne
System.Private.CoreLib (24)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1808
/// <inheritdoc cref="ISignedNumber{TSelf}.
NegativeOne
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
1830
/// <inheritdoc cref="ISignedNumber{TSelf}.
NegativeOne
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
2277
/// <inheritdoc cref="ISignedNumber{TSelf}.
NegativeOne
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
2046
/// <inheritdoc cref="ISignedNumber{TSelf}.
NegativeOne
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
1345
/// <inheritdoc cref="ISignedNumber{TSelf}.
NegativeOne
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
1396
/// <inheritdoc cref="ISignedNumber{TSelf}.
NegativeOne
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
1399
/// <inheritdoc cref="ISignedNumber{TSelf}.
NegativeOne
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
1412
/// <inheritdoc cref="ISignedNumber{TSelf}.
NegativeOne
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (1)
1999
/// <inheritdoc cref="ISignedNumber{TSelf}.
NegativeOne
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector.cs (2)
101
get => Create(T.
NegativeOne
);
109
get => CreateAlternatingSequence(T.One, T.
NegativeOne
);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
1774
/// <inheritdoc cref="ISignedNumber{TSelf}.
NegativeOne
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (4)
131
/// <summary>Gets a new vector with all elements initialized to <see cref="ISignedNumber{TSelf}.
NegativeOne
" />.</summary>
136
get => Create(T.
NegativeOne
);
139
/// <summary>Gets a new vector with elements that alternate between <see cref="INumberBase{TSelf}.One" /> and <see cref="ISignedNumber{TSelf}.
NegativeOne
" />, starting with one.</summary>
145
get => CreateAlternatingSequence(T.One, T.
NegativeOne
);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (2)
130
get => Create(T.
NegativeOne
);
138
get => CreateAlternatingSequence(T.One, T.
NegativeOne
);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (2)
130
get => Create(T.
NegativeOne
);
138
get => CreateAlternatingSequence(T.One, T.
NegativeOne
);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64.cs (2)
103
get => Create(T.
NegativeOne
);
111
get => CreateAlternatingSequence(T.One, T.
NegativeOne
);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
1324
/// <inheritdoc cref="ISignedNumber{TSelf}.
NegativeOne
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
1744
/// <inheritdoc cref="ISignedNumber{TSelf}.
NegativeOne
" />
System.Private.Windows.Core.TestUtilities (2)
XUnit\TestData.cs (2)
45
T.
NegativeOne
,
50
T.Epsilon * T.
NegativeOne
System.Runtime.Numerics (3)
System\Numerics\BigInteger.cs (1)
5535
/// <inheritdoc cref="ISignedNumber{TSelf}.
NegativeOne
" />
System\Numerics\Complex.cs (1)
858
/// <inheritdoc cref="ISignedNumber{TSelf}.
NegativeOne
" />
System\Numerics\Complex.Generic.cs (1)
2064
/// <inheritdoc cref="ISignedNumber{TSelf}.
NegativeOne
" />