7 implementations of IsPositive
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
655
static bool INumberBase<byte>.
IsPositive
(byte value) => true;
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1476
static bool INumberBase<char>.
IsPositive
(char value) => true;
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1542
static bool INumberBase<UInt128>.
IsPositive
(UInt128 value) => true;
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
674
static bool INumberBase<ushort>.
IsPositive
(ushort value) => true;
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
713
static bool INumberBase<uint>.
IsPositive
(uint value) => true;
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
712
static bool INumberBase<ulong>.
IsPositive
(ulong value) => true;
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
715
static bool INumberBase<nuint>.
IsPositive
(nuint value) => true;
29 references to IsPositive
PresentationCore.Tests (1)
FluentAssertions\ComparisonHelpers.cs (1)
110
static unsafe bool IsPositiveZero(T value) => T.IsZero(value) && T.
IsPositive
(value);
System.Numerics.Tensors (1)
System\Numerics\Tensors\netcore\TensorPrimitives.IsPositive.cs (1)
52
public static bool Invoke(T x) => T.
IsPositive
(x);
System.Private.CoreLib (23)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
654
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1475
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1434
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
1120
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
1834
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
1391
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
768
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
809
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
806
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
801
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
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\libraries\System.Private.CoreLib\src\System\Numerics\TotalOrderIeee754Comparer.cs (4)
122
return T.
IsPositive
(y) ? 0 : 1;
178
return T.
IsPositive
(y) ? -1 : CompareSignificand(y, x);
187
return T.
IsPositive
(x) ? 1 : -1;
192
return T.
IsPositive
(y) ? -1 : 1;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
1368
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
731
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
1137
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1541
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
673
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
712
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
711
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
714
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
System.Private.Windows.Core.TestUtilities (1)
ComparisonHelpers.cs (1)
110
static unsafe bool IsPositiveZero(T value) => T.IsZero(value) && T.
IsPositive
(value);
System.Runtime.Numerics (2)
System\Numerics\BigInteger.cs (1)
4110
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
System\Numerics\Complex.cs (1)
1043
/// <inheritdoc cref="INumberBase{TSelf}.
IsPositive
(TSelf)" />
System.Windows.Forms.Primitives.TestUtilities (1)
Extensions\AssertExtensions.cs (1)
622
=> T.IsZero(value) && T.
IsPositive
(value);