24 implementations of IsCanonical
System.Private.CoreLib (21)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
614static bool INumberBase<byte>.IsCanonical(byte value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1494static bool INumberBase<char>.IsCanonical(char value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
1121static bool INumberBase<double>.IsCanonical(double value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
1867static bool INumberBase<Half>.IsCanonical(Half value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
1342static bool INumberBase<Int128>.IsCanonical(Int128 value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
714static bool INumberBase<short>.IsCanonical(short value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
756static bool INumberBase<int>.IsCanonical(int value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
753static bool INumberBase<long>.IsCanonical(long value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
776static bool INumberBase<nint>.IsCanonical(nint value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (1)
1456static bool INumberBase<BFloat16>.IsCanonical(BFloat16 value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal128.cs (1)
1286static bool INumberBase<Decimal128>.IsCanonical(Decimal128 value) => Number.IsCanonicalDecimalIeee754<Decimal128, UInt128>(new UInt128(value._upper, value._lower), nanReservedMask: new UInt128(0x01FF_C000_0000_0000, 0x0000_0000_0000_0000), nanPayloadMask: NaNPayloadMask, maxNaNPayload: new UInt128(0x0000_314D_C644_8D93, 0x38C1_5B09_FFFF_FFFF));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal32.cs (1)
1297static bool INumberBase<Decimal32>.IsCanonical(Decimal32 value) => Number.IsCanonicalDecimalIeee754<Decimal32, uint>(value._value, nanReservedMask: 0x01F0_0000, nanPayloadMask: NaNPayloadMask, maxNaNPayload: 999_999);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal64.cs (1)
1290static bool INumberBase<Decimal64>.IsCanonical(Decimal64 value) => Number.IsCanonicalDecimalIeee754<Decimal64, ulong>(value._value, nanReservedMask: 0x01FC_0000_0000_0000, nanPayloadMask: NaNPayloadMask, maxNaNPayload: 999_999_999_999_999);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
1278static bool INumberBase<NFloat>.IsCanonical(NFloat value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
693static bool INumberBase<sbyte>.IsCanonical(sbyte value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
1116static bool INumberBase<float>.IsCanonical(float value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1539static bool INumberBase<UInt128>.IsCanonical(UInt128 value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
619static bool INumberBase<ushort>.IsCanonical(ushort value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
684static bool INumberBase<uint>.IsCanonical(uint value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
691static bool INumberBase<ulong>.IsCanonical(ulong value) => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
690static bool INumberBase<nuint>.IsCanonical(nuint value) => true;
System.Runtime.Numerics (3)
System\Numerics\BigInteger.cs (1)
4175static bool INumberBase<BigInteger>.IsCanonical(BigInteger value) => true;
System\Numerics\Complex.cs (1)
583static bool INumberBase<Complex>.IsCanonical(Complex value) => true;
System\Numerics\Complex.Generic.cs (1)
1245static bool INumberBase<Complex<T>>.IsCanonical(Complex<T> value) => true;
26 references to IsCanonical
System.Numerics.Tensors (1)
System\Numerics\Tensors\netcore\TensorPrimitives.IsCanonical.cs (1)
67public static bool Invoke(T x) => T.IsCanonical(x);
System.Private.CoreLib (22)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
613/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1493/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1341/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
1120/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
1866/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
1341/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
713/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
755/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
752/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
775/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (1)
1455/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal128.cs (1)
1285/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal32.cs (1)
1296/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal64.cs (1)
1289/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
1277/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
692/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
1115/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1538/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
618/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
683/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
690/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
689/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" />
System.Runtime.Numerics (3)
System\Numerics\BigInteger.cs (1)
4174/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" />
System\Numerics\Complex.cs (1)
582/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" />
System\Numerics\Complex.Generic.cs (1)
1244/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" />