7 implementations of IsPositive
System.Private.CoreLib (7)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
650
static bool INumberBase<byte>.
IsPositive
(byte value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1530
static bool INumberBase<char>.
IsPositive
(char value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1575
static bool INumberBase<UInt128>.
IsPositive
(UInt128 value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
655
static bool INumberBase<ushort>.
IsPositive
(ushort value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
720
static bool INumberBase<uint>.
IsPositive
(uint value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
727
static bool INumberBase<ulong>.
IsPositive
(ulong value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
726
static bool INumberBase<nuint>.
IsPositive
(nuint value) => true;
57 references to IsPositive
System.Linq (1)
System\Linq\Sequence.cs (1)
72
else if (T.
IsPositive
(step))
System.Linq.AsyncEnumerable (1)
System\Linq\Sequence.cs (1)
72
else if (T.
IsPositive
(step))
System.Numerics.Tensors (5)
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMax.cs (1)
41
return T.
IsPositive
(x) && T.IsNegative(y);
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMaxMagnitude.cs (1)
45
return T.
IsPositive
(x) && T.IsNegative(y);
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMin.cs (1)
40
return T.IsNegative(x) && T.
IsPositive
(y);
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMinMagnitude.cs (1)
45
return T.IsNegative(x) && T.
IsPositive
(y);
System\Numerics\Tensors\netcore\TensorPrimitives.IsPositive.cs (1)
49
public static bool Invoke(T x) => T.
IsPositive
(x);
System.Private.CoreLib (45)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
649
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1529
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1407
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
1138
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
1884
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
1377
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
749
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
791
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
788
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
811
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (1)
1473
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\IBinaryInteger.cs (21)
46
if (TSelf.
IsPositive
(left) != TSelf.
IsPositive
(right))
56
if (TSelf.
IsPositive
(left) == TSelf.
IsPositive
(right))
66
if (TSelf.
IsPositive
(left) != TSelf.
IsPositive
(right))
83
if (TSelf.
IsPositive
(right))
130
if (TSelf.
IsPositive
(left) != TSelf.
IsPositive
(right))
139
if (TSelf.
IsPositive
(left) == TSelf.
IsPositive
(right))
148
if (TSelf.
IsPositive
(left) != TSelf.
IsPositive
(right))
163
if (TSelf.
IsPositive
(right))
208
if (TSelf.
IsPositive
(left) != TSelf.
IsPositive
(right))
217
if (TSelf.
IsPositive
(left) == TSelf.
IsPositive
(right))
226
if (TSelf.
IsPositive
(left) != TSelf.
IsPositive
(right))
241
if (TSelf.
IsPositive
(right))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\INumberBase.cs (1)
179
/// <para>This function returning <c>false</c> does not imply that <see cref="
IsPositive
(TSelf)" /> will return <c>true</c>. A complex number, <c>a + bi</c> for non-zero <c>b</c>, is not positive nor negative</para>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\TotalOrderIeee754Comparer.cs (3)
295
return T.
IsPositive
(y) ? -1 : CompareSignificand(y, x);
304
return T.
IsPositive
(x) ? 1 : -1;
309
return T.
IsPositive
(y) ? -1 : 1;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Random.cs (1)
339
Debug.Assert(T.
IsPositive
(maxExclusive));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
1295
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
728
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
1153
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1574
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
654
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
719
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
726
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
725
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
System.Private.Windows.Core.TestUtilities (1)
ComparisonHelpers.cs (1)
111
static unsafe bool IsPositiveZero(T value) => T.IsZero(value) && T.
IsPositive
(value);
System.Runtime.Numerics (4)
System\Numerics\BigInteger.cs (1)
4223
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
System\Numerics\Complex.cs (1)
628
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
System\Numerics\Complex.Generic.cs (2)
1290
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
1296
return (value.m_imaginary == T.Zero) && T.
IsPositive
(value.m_real);