7 implementations of IsPositive
System.Private.CoreLib (7)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
650static bool INumberBase<byte>.IsPositive(byte value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1530static bool INumberBase<char>.IsPositive(char value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1575static bool INumberBase<UInt128>.IsPositive(UInt128 value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
655static bool INumberBase<ushort>.IsPositive(ushort value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
720static bool INumberBase<uint>.IsPositive(uint value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
727static bool INumberBase<ulong>.IsPositive(ulong value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
726static bool INumberBase<nuint>.IsPositive(nuint value) => true;
57 references to IsPositive
System.Linq (1)
System\Linq\Sequence.cs (1)
72else if (T.IsPositive(step))
System.Linq.AsyncEnumerable (1)
System\Linq\Sequence.cs (1)
72else if (T.IsPositive(step))
System.Numerics.Tensors (5)
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMax.cs (1)
41return T.IsPositive(x) && T.IsNegative(y);
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMaxMagnitude.cs (1)
45return T.IsPositive(x) && T.IsNegative(y);
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMin.cs (1)
40return T.IsNegative(x) && T.IsPositive(y);
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMinMagnitude.cs (1)
45return T.IsNegative(x) && T.IsPositive(y);
System\Numerics\Tensors\netcore\TensorPrimitives.IsPositive.cs (1)
49public 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)
46if (TSelf.IsPositive(left) != TSelf.IsPositive(right)) 56if (TSelf.IsPositive(left) == TSelf.IsPositive(right)) 66if (TSelf.IsPositive(left) != TSelf.IsPositive(right)) 83if (TSelf.IsPositive(right)) 130if (TSelf.IsPositive(left) != TSelf.IsPositive(right)) 139if (TSelf.IsPositive(left) == TSelf.IsPositive(right)) 148if (TSelf.IsPositive(left) != TSelf.IsPositive(right)) 163if (TSelf.IsPositive(right)) 208if (TSelf.IsPositive(left) != TSelf.IsPositive(right)) 217if (TSelf.IsPositive(left) == TSelf.IsPositive(right)) 226if (TSelf.IsPositive(left) != TSelf.IsPositive(right)) 241if (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)
295return T.IsPositive(y) ? -1 : CompareSignificand(y, x); 304return T.IsPositive(x) ? 1 : -1; 309return T.IsPositive(y) ? -1 : 1;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Random.cs (1)
339Debug.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)
111static 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)" /> 1296return (value.m_imaginary == T.Zero) && T.IsPositive(value.m_real);