12 implementations of NegativeOne
System.Private.CoreLib (9)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1828
static decimal ISignedNumber<decimal>.
NegativeOne
=> NegativeOne;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
1873
static double ISignedNumber<double>.
NegativeOne
=> NegativeOne;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
1359
static short ISignedNumber<short>.
NegativeOne
=> NegativeOne;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
1410
static int ISignedNumber<int>.
NegativeOne
=> NegativeOne;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
1413
static long ISignedNumber<long>.
NegativeOne
=> NegativeOne;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
1426
static nint ISignedNumber<nint>.
NegativeOne
=> -1;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
1789
static NFloat ISignedNumber<NFloat>.
NegativeOne
=> new NFloat(NativeType.NegativeOne);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
1338
static sbyte ISignedNumber<sbyte>.
NegativeOne
=> NegativeOne;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
1767
static float ISignedNumber<float>.
NegativeOne
=> NegativeOne;
System.Runtime.Numerics (3)
System\Numerics\BigInteger.cs (1)
6138
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)
2067
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)
1827
/// <inheritdoc cref="ISignedNumber{TSelf}.
NegativeOne
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
1872
/// <inheritdoc cref="ISignedNumber{TSelf}.
NegativeOne
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
2288
/// <inheritdoc cref="ISignedNumber{TSelf}.
NegativeOne
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
2059
/// <inheritdoc cref="ISignedNumber{TSelf}.
NegativeOne
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
1358
/// <inheritdoc cref="ISignedNumber{TSelf}.
NegativeOne
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
1409
/// <inheritdoc cref="ISignedNumber{TSelf}.
NegativeOne
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
1412
/// <inheritdoc cref="ISignedNumber{TSelf}.
NegativeOne
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
1425
/// <inheritdoc cref="ISignedNumber{TSelf}.
NegativeOne
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (1)
2009
/// <inheritdoc cref="ISignedNumber{TSelf}.
NegativeOne
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector.cs (2)
103
get => Create(T.
NegativeOne
);
111
get => CreateAlternatingSequence(T.One, T.
NegativeOne
);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
1788
/// <inheritdoc cref="ISignedNumber{TSelf}.
NegativeOne
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (4)
132
/// <summary>Gets a new vector with all elements initialized to <see cref="ISignedNumber{TSelf}.
NegativeOne
" />.</summary>
137
get => Create(T.
NegativeOne
);
140
/// <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>
146
get => CreateAlternatingSequence(T.One, T.
NegativeOne
);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (2)
131
get => Create(T.
NegativeOne
);
139
get => CreateAlternatingSequence(T.One, T.
NegativeOne
);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (2)
131
get => Create(T.
NegativeOne
);
139
get => CreateAlternatingSequence(T.One, T.
NegativeOne
);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64.cs (2)
104
get => Create(T.
NegativeOne
);
112
get => CreateAlternatingSequence(T.One, T.
NegativeOne
);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
1337
/// <inheritdoc cref="ISignedNumber{TSelf}.
NegativeOne
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
1766
/// <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)
6137
/// <inheritdoc cref="ISignedNumber{TSelf}.
NegativeOne
" />
System\Numerics\Complex.cs (1)
858
/// <inheritdoc cref="ISignedNumber{TSelf}.
NegativeOne
" />
System\Numerics\Complex.Generic.cs (1)
2066
/// <inheritdoc cref="ISignedNumber{TSelf}.
NegativeOne
" />