15 implementations of IsRealNumber
System.Private.CoreLib (14)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
656
static bool INumberBase<byte>.
IsRealNumber
(byte value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1536
static bool INumberBase<char>.
IsRealNumber
(char value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1414
static bool INumberBase<decimal>.
IsRealNumber
(decimal value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
1384
static bool INumberBase<Int128>.
IsRealNumber
(Int128 value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
756
static bool INumberBase<short>.
IsRealNumber
(short value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
798
static bool INumberBase<int>.
IsRealNumber
(int value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
795
static bool INumberBase<long>.
IsRealNumber
(long value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
818
static bool INumberBase<nint>.
IsRealNumber
(nint value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
735
static bool INumberBase<sbyte>.
IsRealNumber
(sbyte value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1581
static bool INumberBase<UInt128>.
IsRealNumber
(UInt128 value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
661
static bool INumberBase<ushort>.
IsRealNumber
(ushort value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
726
static bool INumberBase<uint>.
IsRealNumber
(uint value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
733
static bool INumberBase<ulong>.
IsRealNumber
(ulong value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
732
static bool INumberBase<nuint>.
IsRealNumber
(nuint value) => true;
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
4233
static bool INumberBase<BigInteger>.
IsRealNumber
(BigInteger value) => true;
25 references to IsRealNumber
System.Numerics.Tensors (1)
System\Numerics\Tensors\netcore\TensorPrimitives.IsRealNumber.cs (1)
67
public static bool Invoke(T x) => T.
IsRealNumber
(x);
System.Private.CoreLib (19)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
655
/// <inheritdoc cref="INumberBase{TSelf}.
IsRealNumber
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1535
/// <inheritdoc cref="INumberBase{TSelf}.
IsRealNumber
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1413
/// <inheritdoc cref="INumberBase{TSelf}.
IsRealNumber
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
1141
/// <inheritdoc cref="INumberBase{TSelf}.
IsRealNumber
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
1887
/// <inheritdoc cref="INumberBase{TSelf}.
IsRealNumber
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
1383
/// <inheritdoc cref="INumberBase{TSelf}.
IsRealNumber
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
755
/// <inheritdoc cref="INumberBase{TSelf}.
IsRealNumber
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
797
/// <inheritdoc cref="INumberBase{TSelf}.
IsRealNumber
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
794
/// <inheritdoc cref="INumberBase{TSelf}.
IsRealNumber
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
817
/// <inheritdoc cref="INumberBase{TSelf}.
IsRealNumber
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (1)
1476
/// <inheritdoc cref="INumberBase{TSelf}.
IsRealNumber
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
1298
/// <inheritdoc cref="INumberBase{TSelf}.
IsRealNumber
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
734
/// <inheritdoc cref="INumberBase{TSelf}.
IsRealNumber
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
1156
/// <inheritdoc cref="INumberBase{TSelf}.
IsRealNumber
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1580
/// <inheritdoc cref="INumberBase{TSelf}.
IsRealNumber
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
660
/// <inheritdoc cref="INumberBase{TSelf}.
IsRealNumber
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
725
/// <inheritdoc cref="INumberBase{TSelf}.
IsRealNumber
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
732
/// <inheritdoc cref="INumberBase{TSelf}.
IsRealNumber
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
731
/// <inheritdoc cref="INumberBase{TSelf}.
IsRealNumber
(TSelf)" />
System.Runtime.Numerics (5)
System\Numerics\BigInteger.cs (1)
4232
/// <inheritdoc cref="INumberBase{TSelf}.
IsRealNumber
(TSelf)" />
System\Numerics\Complex.cs (1)
646
/// <inheritdoc cref="INumberBase{TSelf}.
IsRealNumber
(TSelf)" />
System\Numerics\Complex.Generic.cs (3)
1254
public static bool IsImaginaryNumber(Complex<T> value) => (value.m_real == T.Zero) && T.
IsRealNumber
(value.m_imaginary);
1308
/// <inheritdoc cref="INumberBase{TSelf}.
IsRealNumber
(TSelf)" />
1309
public static bool IsRealNumber(Complex<T> value) => (value.m_imaginary == T.Zero) && T.
IsRealNumber
(value.m_real);