5 interfaces inheriting from INumberBase
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Numerics\IFloatingPointConstants.cs (1)
9: INumberBase<TSelf>
src\libraries\System.Private.CoreLib\src\System\Numerics\INumber.cs (1)
16INumberBase<TSelf>
src\libraries\System.Private.CoreLib\src\System\Numerics\IPowerFunctions.cs (1)
9: INumberBase<TSelf>
src\libraries\System.Private.CoreLib\src\System\Numerics\ISignedNumber.cs (1)
9: INumberBase<TSelf>
src\libraries\System.Private.CoreLib\src\System\Numerics\IUnsignedNumber.cs (1)
9: INumberBase<TSelf>
1 implementation of INumberBase
System.Runtime.Numerics (1)
System\Numerics\Complex.cs (1)
23INumberBase<Complex>,
1486 references to INumberBase
System.Net.Http (1)
System\Net\Http\Headers\KnownHeaders.cs (1)
129where T : struct, INumberBase<T>
System.Numerics.Tensors (140)
System\Numerics\Tensors\netcore\Tensor.cs (17)
2403where T : INumberBase<T> 2416where T : INumberBase<T> 2840where T : INumberBase<T> 2911where TFrom : IEquatable<TFrom>, IEqualityOperators<TFrom, TFrom, bool>, INumberBase<TFrom> 2912where TTo : INumberBase<TTo> 2926where TFrom : IEquatable<TFrom>, IEqualityOperators<TFrom, TFrom, bool>, INumberBase<TFrom> 2927where TTo : INumberBase<TTo> 2942where TFrom : IEquatable<TFrom>, IEqualityOperators<TFrom, TFrom, bool>, INumberBase<TFrom> 2943where TTo : INumberBase<TTo> 2957where TFrom : IEquatable<TFrom>, IEqualityOperators<TFrom, TFrom, bool>, INumberBase<TFrom> 2958where TTo : INumberBase<TTo> 2973where TFrom : IEquatable<TFrom>, IEqualityOperators<TFrom, TFrom, bool>, INumberBase<TFrom> 2974where TTo : INumberBase<TTo> 2988where TFrom : IEquatable<TFrom>, IEqualityOperators<TFrom, TFrom, bool>, INumberBase<TFrom> 2989where TTo : INumberBase<TTo> 3937where T : INumberBase<T> 4189where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorOperation.cs (10)
498where T : INumberBase<T> 814where TFrom : IEquatable<TFrom>, IEqualityOperators<TFrom, TFrom, bool>, INumberBase<TFrom> 815where TTo : INumberBase<TTo> 830where TFrom : IEquatable<TFrom>, IEqualityOperators<TFrom, TFrom, bool>, INumberBase<TFrom> 831where TTo : INumberBase<TTo> 846where TFrom : IEquatable<TFrom>, IEqualityOperators<TFrom, TFrom, bool>, INumberBase<TFrom> 847where TTo : INumberBase<TTo> 1426where T : INumberBase<T> 1574where T : INumberBase<T> 2108where T : IAdditionOperators<T, T, T>, IAdditiveIdentity<T, T>, IMultiplyOperators<T, T, T>, ISubtractionOperators<T, T, T>, INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Abs.cs (2)
30where T : INumberBase<T> 41internal readonly struct AbsoluteOperator<T> : IUnaryOperator<T, T> where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Average.cs (1)
18where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertChecked.cs (4)
23where TFrom : INumberBase<TFrom> 24where TTo : INumberBase<TTo> 33internal readonly struct ConvertCheckedFallbackOperator<TFrom, TTo> : IUnaryOperator<TFrom, TTo> where TFrom : INumberBase<TFrom> where TTo : INumberBase<TTo>
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertHelpers.cs (2)
14where TFrom : INumberBase<TFrom> 15where TTo : INumberBase<TTo>
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertSaturating.cs (4)
23where TFrom : INumberBase<TFrom> 24where TTo : INumberBase<TTo> 33internal readonly struct ConvertSaturatingFallbackOperator<TFrom, TTo> : IUnaryOperator<TFrom, TTo> where TFrom : INumberBase<TFrom> where TTo : INumberBase<TTo>
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertTruncating.cs (4)
23where TFrom : INumberBase<TFrom> 24where TTo : INumberBase<TTo> 218private readonly struct ConvertTruncatingFallbackOperator<TFrom, TTo> : IUnaryOperator<TFrom, TTo> where TFrom : INumberBase<TFrom> where TTo : INumberBase<TTo>
System\Numerics\Tensors\netcore\TensorPrimitives.CosineSimilarity.cs (4)
339private static void Update<T>(T x, T y, ref T dotProduct, ref T xSumOfSquares, ref T ySumOfSquares) where T : INumberBase<T> 347private static void Update<T>(Vector128<T> xVec, Vector128<T> yVec, ref Vector128<T> dotProductVector, ref Vector128<T> xSumOfSquaresVector, ref Vector128<T> ySumOfSquaresVector) where T : INumberBase<T> 355private static void Update<T>(Vector256<T> xVec, Vector256<T> yVec, ref Vector256<T> dotProductVector, ref Vector256<T> xSumOfSquaresVector, ref Vector256<T> ySumOfSquaresVector) where T : INumberBase<T> 363private static void Update<T>(Vector512<T> xVec, Vector512<T> yVec, ref Vector512<T> dotProductVector, ref Vector512<T> xSumOfSquaresVector, ref Vector512<T> ySumOfSquaresVector) where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMax.cs (1)
446private static bool IsNegative<T>(T f) where T : INumberBase<T> => T.IsNegative(f);
System\Numerics\Tensors\netcore\TensorPrimitives.IsCanonical.cs (4)
19where T : INumberBase<T> 42where T : INumberBase<T> => 53where T : INumberBase<T> => 64where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsComplexNumber.cs (4)
19where T : INumberBase<T> 42where T : INumberBase<T> => 53where T : INumberBase<T> => 65where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsEvenInteger.cs (4)
19where T : INumberBase<T> => 29where T : INumberBase<T> => 40where T : INumberBase<T> => 46where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsFinite.cs (4)
19where T : INumberBase<T> 42where T : INumberBase<T> => 53where T : INumberBase<T> => 64where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsImaginaryNumber.cs (4)
19where T : INumberBase<T> 42where T : INumberBase<T> => 53where T : INumberBase<T> => 65where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsInfinity.cs (4)
19where T : INumberBase<T> => 29where T : INumberBase<T> => 40where T : INumberBase<T> => 51where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsInteger.cs (4)
19where T : INumberBase<T> 42where T : INumberBase<T> => 53where T : INumberBase<T> => 63where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsNaN.cs (4)
19where T : INumberBase<T> 42where T : INumberBase<T> => 53where T : INumberBase<T> => 64where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsNegative.cs (4)
19where T : INumberBase<T> 42where T : INumberBase<T> => 53where T : INumberBase<T> => 68where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsNegativeInfinity.cs (4)
19where T : INumberBase<T> => 29where T : INumberBase<T> => 40where T : INumberBase<T> => 51where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsNormal.cs (4)
19where T : INumberBase<T> => 29where T : INumberBase<T> => 40where T : INumberBase<T> => 46where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsOddInteger.cs (4)
19where T : INumberBase<T> => 29where T : INumberBase<T> => 40where T : INumberBase<T> => 46where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsPositive.cs (4)
19where T : INumberBase<T> => 29where T : INumberBase<T> => 40where T : INumberBase<T> => 46where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsPositiveInfinity.cs (4)
19where T : INumberBase<T> => 29where T : INumberBase<T> => 40where T : INumberBase<T> => 51where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsRealNumber.cs (4)
19where T : INumberBase<T> 42where T : INumberBase<T> => 53where T : INumberBase<T> => 64where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsSubnormal.cs (4)
19where T : INumberBase<T> => 29where T : INumberBase<T> => 40where T : INumberBase<T> => 51where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsZero.cs (4)
19where T : INumberBase<T> => 29where T : INumberBase<T> => 40where T : INumberBase<T> => 46where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Max.cs (1)
232where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.MaxMagnitude.cs (4)
27where T : INumberBase<T> 53where T : INumberBase<T> 77where T : INumberBase<T> 89where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.MaxMagnitudeNumber.cs (4)
28where T : INumberBase<T> 61where T : INumberBase<T> 92where T : INumberBase<T> 104where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.MinMagnitude.cs (4)
27where T : INumberBase<T> 58where T : INumberBase<T> 87where T : INumberBase<T> 99where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.MinMagnitudeNumber.cs (4)
28where T : INumberBase<T> 61where T : INumberBase<T> 92where T : INumberBase<T> 104where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.MultiplyAddEstimate.cs (4)
36where T : INumberBase<T> 69where T : INumberBase<T> 101where T : INumberBase<T> 113where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.StdDev.cs (1)
35where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Sum.cs (1)
46where T : INumberBase<T> =>
System.Private.CoreLib (1226)
src\libraries\System.Private.CoreLib\src\System\ArgumentOutOfRangeException.cs (3)
130where T : INumberBase<T> 140where T : INumberBase<T> 150where T : INumberBase<T>
src\libraries\System.Private.CoreLib\src\System\Byte.cs (73)
549/// <inheritdoc cref="INumberBase{TSelf}.One" /> 550static byte INumberBase<byte>.One => One; 552/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 553static int INumberBase<byte>.Radix => 2; 555/// <inheritdoc cref="INumberBase{TSelf}.Zero" /> 556static byte INumberBase<byte>.Zero => Zero; 558/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" /> 559static byte INumberBase<byte>.Abs(byte value) => value; 561/// <inheritdoc cref="INumberBase{TSelf}.CreateChecked{TOther}(TOther)" /> 564where TOther : INumberBase<TOther> 580/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" /> 583where TOther : INumberBase<TOther> 599/// <inheritdoc cref="INumberBase{TSelf}.CreateTruncating{TOther}(TOther)" /> 602where TOther : INumberBase<TOther> 618/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 619static bool INumberBase<byte>.IsCanonical(byte value) => true; 621/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 622static bool INumberBase<byte>.IsComplexNumber(byte value) => false; 624/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 627/// <inheritdoc cref="INumberBase{TSelf}.IsFinite(TSelf)" /> 628static bool INumberBase<byte>.IsFinite(byte value) => true; 630/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 631static bool INumberBase<byte>.IsImaginaryNumber(byte value) => false; 633/// <inheritdoc cref="INumberBase{TSelf}.IsInfinity(TSelf)" /> 634static bool INumberBase<byte>.IsInfinity(byte value) => false; 636/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 637static bool INumberBase<byte>.IsInteger(byte value) => true; 639/// <inheritdoc cref="INumberBase{TSelf}.IsNaN(TSelf)" /> 640static bool INumberBase<byte>.IsNaN(byte value) => false; 642/// <inheritdoc cref="INumberBase{TSelf}.IsNegative(TSelf)" /> 643static bool INumberBase<byte>.IsNegative(byte value) => false; 645/// <inheritdoc cref="INumberBase{TSelf}.IsNegativeInfinity(TSelf)" /> 646static bool INumberBase<byte>.IsNegativeInfinity(byte value) => false; 648/// <inheritdoc cref="INumberBase{TSelf}.IsNormal(TSelf)" /> 649static bool INumberBase<byte>.IsNormal(byte value) => value != 0; 651/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 654/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 655static bool INumberBase<byte>.IsPositive(byte value) => true; 657/// <inheritdoc cref="INumberBase{TSelf}.IsPositiveInfinity(TSelf)" /> 658static bool INumberBase<byte>.IsPositiveInfinity(byte value) => false; 660/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 661static bool INumberBase<byte>.IsRealNumber(byte value) => true; 663/// <inheritdoc cref="INumberBase{TSelf}.IsSubnormal(TSelf)" /> 664static bool INumberBase<byte>.IsSubnormal(byte value) => false; 666/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 667static bool INumberBase<byte>.IsZero(byte value) => (value == 0); 669/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 670static byte INumberBase<byte>.MaxMagnitude(byte x, byte y) => Max(x, y); 672/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 673static byte INumberBase<byte>.MaxMagnitudeNumber(byte x, byte y) => Max(x, y); 675/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 676static byte INumberBase<byte>.MinMagnitude(byte x, byte y) => Min(x, y); 678/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 679static byte INumberBase<byte>.MinMagnitudeNumber(byte x, byte y) => Min(x, y); 681/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 682static byte INumberBase<byte>.MultiplyAddEstimate(byte left, byte right, byte addend) => (byte)((left * right) + addend); 684/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 686static bool INumberBase<byte>.TryConvertFromChecked<TOther>(TOther value, out byte result) => TryConvertFromChecked(value, out result); 690where TOther : INumberBase<TOther> 750/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 752static bool INumberBase<byte>.TryConvertFromSaturating<TOther>(TOther value, out byte result) => TryConvertFromSaturating(value, out result); 756where TOther : INumberBase<TOther> 817/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 819static bool INumberBase<byte>.TryConvertFromTruncating<TOther>(TOther value, out byte result) => TryConvertFromTruncating(value, out result); 823where TOther : INumberBase<TOther> 884/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 886static bool INumberBase<byte>.TryConvertToChecked<TOther>(byte value, [MaybeNullWhen(false)] out TOther result) 958/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 960static bool INumberBase<byte>.TryConvertToSaturating<TOther>(byte value, [MaybeNullWhen(false)] out TOther result) 1032/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 1034static bool INumberBase<byte>.TryConvertToTruncating<TOther>(byte value, [MaybeNullWhen(false)] out TOther result) 1167/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1174/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Char.cs (68)
1479/// <inheritdoc cref="INumberBase{TSelf}.One" /> 1480static char INumberBase<char>.One => (char)1; 1482/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 1483static int INumberBase<char>.Radix => 2; 1485/// <inheritdoc cref="INumberBase{TSelf}.Zero" /> 1486static char INumberBase<char>.Zero => (char)0; 1488/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" /> 1489static char INumberBase<char>.Abs(char value) => value; 1491/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 1492static bool INumberBase<char>.IsCanonical(char value) => true; 1494/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 1495static bool INumberBase<char>.IsComplexNumber(char value) => false; 1497/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 1498static bool INumberBase<char>.IsEvenInteger(char value) => (value & 1) == 0; 1500/// <inheritdoc cref="INumberBase{TSelf}.IsFinite(TSelf)" /> 1501static bool INumberBase<char>.IsFinite(char value) => true; 1503/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 1504static bool INumberBase<char>.IsImaginaryNumber(char value) => false; 1506/// <inheritdoc cref="INumberBase{TSelf}.IsInfinity(TSelf)" /> 1507static bool INumberBase<char>.IsInfinity(char value) => false; 1509/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 1510static bool INumberBase<char>.IsInteger(char value) => true; 1512/// <inheritdoc cref="INumberBase{TSelf}.IsNaN(TSelf)" /> 1513static bool INumberBase<char>.IsNaN(char value) => false; 1515/// <inheritdoc cref="INumberBase{TSelf}.IsNegative(TSelf)" /> 1516static bool INumberBase<char>.IsNegative(char value) => false; 1518/// <inheritdoc cref="INumberBase{TSelf}.IsNegativeInfinity(TSelf)" /> 1519static bool INumberBase<char>.IsNegativeInfinity(char value) => false; 1521/// <inheritdoc cref="INumberBase{TSelf}.IsNormal(TSelf)" /> 1522static bool INumberBase<char>.IsNormal(char value) => value != 0; 1524/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 1525static bool INumberBase<char>.IsOddInteger(char value) => (value & 1) != 0; 1527/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 1528static bool INumberBase<char>.IsPositive(char value) => true; 1530/// <inheritdoc cref="INumberBase{TSelf}.IsPositiveInfinity(TSelf)" /> 1531static bool INumberBase<char>.IsPositiveInfinity(char value) => false; 1533/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 1534static bool INumberBase<char>.IsRealNumber(char value) => true; 1536/// <inheritdoc cref="INumberBase{TSelf}.IsSubnormal(TSelf)" /> 1537static bool INumberBase<char>.IsSubnormal(char value) => false; 1539/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 1540static bool INumberBase<char>.IsZero(char value) => (value == 0); 1542/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 1543static char INumberBase<char>.MaxMagnitude(char x, char y) => (char)Math.Max(x, y); 1545/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 1546static char INumberBase<char>.MaxMagnitudeNumber(char x, char y) => (char)Math.Max(x, y); 1548/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 1549static char INumberBase<char>.MinMagnitude(char x, char y) => (char)Math.Min(x, y); 1551/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 1552static char INumberBase<char>.MinMagnitudeNumber(char x, char y) => (char)Math.Min(x, y); 1554/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 1555static char INumberBase<char>.MultiplyAddEstimate(char left, char right, char addend) => (char)((left * right) + addend); 1557static char INumberBase<char>.Parse(string s, NumberStyles style, IFormatProvider? provider) => Parse(s); 1559static char INumberBase<char>.Parse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider) => Parse(s); 1561/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 1563static bool INumberBase<char>.TryConvertFromChecked<TOther>(TOther value, out char result) 1623/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 1625static bool INumberBase<char>.TryConvertFromSaturating<TOther>(TOther value, out char result) 1686/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 1688static bool INumberBase<char>.TryConvertFromTruncating<TOther>(TOther value, out char result) 1749/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 1751static bool INumberBase<char>.TryConvertToChecked<TOther>(char value, [MaybeNullWhen(false)] out TOther result) 1823/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 1825static bool INumberBase<char>.TryConvertToSaturating<TOther>(char value, [MaybeNullWhen(false)] out TOther result) 1897/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 1899static bool INumberBase<char>.TryConvertToTruncating<TOther>(char value, [MaybeNullWhen(false)] out TOther result) 1971static bool INumberBase<char>.TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out char result) => TryParse(s, out result); 1973static bool INumberBase<char>.TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out char result) => TryParse(s, out result);
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (66)
1299/// <inheritdoc cref="INumberBase{TSelf}.One" /> 1300static decimal INumberBase<decimal>.One => One; 1302/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 1303static int INumberBase<decimal>.Radix => 10; 1305/// <inheritdoc cref="INumberBase{TSelf}.Zero" /> 1306static decimal INumberBase<decimal>.Zero => Zero; 1308/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" /> 1314/// <inheritdoc cref="INumberBase{TSelf}.CreateChecked{TOther}(TOther)" /> 1317where TOther : INumberBase<TOther> 1333/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" /> 1336where TOther : INumberBase<TOther> 1352/// <inheritdoc cref="INumberBase{TSelf}.CreateTruncating{TOther}(TOther)" /> 1355where TOther : INumberBase<TOther> 1371/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 1394/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 1395static bool INumberBase<decimal>.IsComplexNumber(decimal value) => false; 1397/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 1404/// <inheritdoc cref="INumberBase{TSelf}.IsFinite(TSelf)" /> 1405static bool INumberBase<decimal>.IsFinite(decimal value) => true; 1407/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 1408static bool INumberBase<decimal>.IsImaginaryNumber(decimal value) => false; 1410/// <inheritdoc cref="INumberBase{TSelf}.IsInfinity(TSelf)" /> 1411static bool INumberBase<decimal>.IsInfinity(decimal value) => false; 1413/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 1416/// <inheritdoc cref="INumberBase{TSelf}.IsNaN(TSelf)" /> 1417static bool INumberBase<decimal>.IsNaN(decimal value) => false; 1419/// <inheritdoc cref="INumberBase{TSelf}.IsNegative(TSelf)" /> 1422/// <inheritdoc cref="INumberBase{TSelf}.IsNegativeInfinity(TSelf)" /> 1423static bool INumberBase<decimal>.IsNegativeInfinity(decimal value) => false; 1425/// <inheritdoc cref="INumberBase{TSelf}.IsNormal(TSelf)" /> 1426static bool INumberBase<decimal>.IsNormal(decimal value) => value != 0; 1428/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 1435/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 1438/// <inheritdoc cref="INumberBase{TSelf}.IsPositiveInfinity(TSelf)" /> 1439static bool INumberBase<decimal>.IsPositiveInfinity(decimal value) => false; 1441/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 1442static bool INumberBase<decimal>.IsRealNumber(decimal value) => true; 1444/// <inheritdoc cref="INumberBase{TSelf}.IsSubnormal(TSelf)" /> 1445static bool INumberBase<decimal>.IsSubnormal(decimal value) => false; 1447/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 1448static bool INumberBase<decimal>.IsZero(decimal value) => (value == 0); 1450/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 1469/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 1470static decimal INumberBase<decimal>.MaxMagnitudeNumber(decimal x, decimal y) => MaxMagnitude(x, y); 1472/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 1491/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 1492static decimal INumberBase<decimal>.MinMagnitudeNumber(decimal x, decimal y) => MinMagnitude(x, y); 1494/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 1495static decimal INumberBase<decimal>.MultiplyAddEstimate(decimal left, decimal right, decimal addend) => (left * right) + addend; 1497/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 1499static bool INumberBase<decimal>.TryConvertFromChecked<TOther>(TOther value, out decimal result) => TryConvertFromChecked(value, out result); 1503where TOther : INumberBase<TOther> 1563/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 1565static bool INumberBase<decimal>.TryConvertFromSaturating<TOther>(TOther value, out decimal result) 1570/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 1572static bool INumberBase<decimal>.TryConvertFromTruncating<TOther>(TOther value, out decimal result) 1579where TOther : INumberBase<TOther> 1639/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 1641static bool INumberBase<decimal>.TryConvertToChecked<TOther>(decimal value, [MaybeNullWhen(false)] out TOther result) 1713/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 1715static bool INumberBase<decimal>.TryConvertToSaturating<TOther>(decimal value, [MaybeNullWhen(false)] out TOther result) 1720/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 1722static bool INumberBase<decimal>.TryConvertToTruncating<TOther>(decimal value, [MaybeNullWhen(false)] out TOther result) 1729where TOther : INumberBase<TOther> 1834/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1841/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Double.cs (47)
1034/// <inheritdoc cref="INumberBase{TSelf}.One" /> 1035static double INumberBase<double>.One => One; 1037/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 1038static int INumberBase<double>.Radix => 2; 1040/// <inheritdoc cref="INumberBase{TSelf}.Zero" /> 1041static double INumberBase<double>.Zero => Zero; 1043/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" /> 1047/// <inheritdoc cref="INumberBase{TSelf}.CreateChecked{TOther}(TOther)" /> 1050where TOther : INumberBase<TOther> 1066/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" /> 1069where TOther : INumberBase<TOther> 1085/// <inheritdoc cref="INumberBase{TSelf}.CreateTruncating{TOther}(TOther)" /> 1088where TOther : INumberBase<TOther> 1104/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 1105static bool INumberBase<double>.IsCanonical(double value) => true; 1107/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 1108static bool INumberBase<double>.IsComplexNumber(double value) => false; 1110/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 1113/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 1114static bool INumberBase<double>.IsImaginaryNumber(double value) => false; 1116/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 1119/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 1122/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 1125/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 1136/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 1137static bool INumberBase<double>.IsZero(double value) => IsZero(value); 1139/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 1143/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 1169/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 1173/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 1199/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 1210/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 1212static bool INumberBase<double>.TryConvertFromChecked<TOther>(TOther value, out double result) 1217/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 1219static bool INumberBase<double>.TryConvertFromSaturating<TOther>(TOther value, out double result) 1224/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 1226static bool INumberBase<double>.TryConvertFromTruncating<TOther>(TOther value, out double result) 1233where TOther : INumberBase<TOther> 1299/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 1301static bool INumberBase<double>.TryConvertToChecked<TOther>(double value, [MaybeNullWhen(false)] out TOther result) 1367/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 1369static bool INumberBase<double>.TryConvertToSaturating<TOther>(double value, [MaybeNullWhen(false)] out TOther result) 1374/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 1376static bool INumberBase<double>.TryConvertToTruncating<TOther>(double value, [MaybeNullWhen(false)] out TOther result) 1383where TOther : INumberBase<TOther> 2264/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 2271/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Half.cs (45)
1743/// <inheritdoc cref="INumberBase{TSelf}.One" /> 1746/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 1747static int INumberBase<Half>.Radix => 2; 1749/// <inheritdoc cref="INumberBase{TSelf}.Zero" /> 1752/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" /> 1755/// <inheritdoc cref="INumberBase{TSelf}.CreateChecked{TOther}(TOther)" /> 1758where TOther : INumberBase<TOther> 1774/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" /> 1777where TOther : INumberBase<TOther> 1793/// <inheritdoc cref="INumberBase{TSelf}.CreateTruncating{TOther}(TOther)" /> 1796where TOther : INumberBase<TOther> 1812/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 1813static bool INumberBase<Half>.IsCanonical(Half value) => true; 1815/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 1816static bool INumberBase<Half>.IsComplexNumber(Half value) => false; 1818/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 1821/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 1822static bool INumberBase<Half>.IsImaginaryNumber(Half value) => false; 1824/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 1827/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 1830/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 1833/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 1844/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 1845static bool INumberBase<Half>.IsZero(Half value) => IsZero(value); 1847/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 1850/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 1875/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 1878/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 1903/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 1906/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 1908static bool INumberBase<Half>.TryConvertFromChecked<TOther>(TOther value, out Half result) 1913/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 1915static bool INumberBase<Half>.TryConvertFromSaturating<TOther>(TOther value, out Half result) 1920/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 1922static bool INumberBase<Half>.TryConvertFromTruncating<TOther>(TOther value, out Half result) 1929where TOther : INumberBase<TOther> 1995/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 1997static bool INumberBase<Half>.TryConvertToChecked<TOther>(Half value, [MaybeNullWhen(false)] out TOther result) 2063/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 2065static bool INumberBase<Half>.TryConvertToSaturating<TOther>(Half value, [MaybeNullWhen(false)] out TOther result) 2070/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 2072static bool INumberBase<Half>.TryConvertToTruncating<TOther>(Half value, [MaybeNullWhen(false)] out TOther result) 2079where TOther : INumberBase<TOther> 2311/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 2318/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int128.cs (66)
1275/// <inheritdoc cref="INumberBase{TSelf}.One" /> 1278/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 1279static int INumberBase<Int128>.Radix => 2; 1281/// <inheritdoc cref="INumberBase{TSelf}.Zero" /> 1284/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" /> 1299/// <inheritdoc cref="INumberBase{TSelf}.CreateChecked{TOther}(TOther)" /> 1302where TOther : INumberBase<TOther> 1318/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" /> 1321where TOther : INumberBase<TOther> 1337/// <inheritdoc cref="INumberBase{TSelf}.CreateTruncating{TOther}(TOther)" /> 1340where TOther : INumberBase<TOther> 1356/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 1357static bool INumberBase<Int128>.IsCanonical(Int128 value) => true; 1359/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 1360static bool INumberBase<Int128>.IsComplexNumber(Int128 value) => false; 1362/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 1365/// <inheritdoc cref="INumberBase{TSelf}.IsFinite(TSelf)" /> 1366static bool INumberBase<Int128>.IsFinite(Int128 value) => true; 1368/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 1369static bool INumberBase<Int128>.IsImaginaryNumber(Int128 value) => false; 1371/// <inheritdoc cref="INumberBase{TSelf}.IsInfinity(TSelf)" /> 1372static bool INumberBase<Int128>.IsInfinity(Int128 value) => false; 1374/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 1375static bool INumberBase<Int128>.IsInteger(Int128 value) => true; 1377/// <inheritdoc cref="INumberBase{TSelf}.IsNaN(TSelf)" /> 1378static bool INumberBase<Int128>.IsNaN(Int128 value) => false; 1380/// <inheritdoc cref="INumberBase{TSelf}.IsNegative(TSelf)" /> 1383/// <inheritdoc cref="INumberBase{TSelf}.IsNegativeInfinity(TSelf)" /> 1384static bool INumberBase<Int128>.IsNegativeInfinity(Int128 value) => false; 1386/// <inheritdoc cref="INumberBase{TSelf}.IsNormal(TSelf)" /> 1387static bool INumberBase<Int128>.IsNormal(Int128 value) => value != 0; 1389/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 1392/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 1395/// <inheritdoc cref="INumberBase{TSelf}.IsPositiveInfinity(TSelf)" /> 1396static bool INumberBase<Int128>.IsPositiveInfinity(Int128 value) => false; 1398/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 1399static bool INumberBase<Int128>.IsRealNumber(Int128 value) => true; 1401/// <inheritdoc cref="INumberBase{TSelf}.IsSubnormal(TSelf)" /> 1402static bool INumberBase<Int128>.IsSubnormal(Int128 value) => false; 1404/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 1405static bool INumberBase<Int128>.IsZero(Int128 value) => (value == 0); 1407/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 1447/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 1448static Int128 INumberBase<Int128>.MaxMagnitudeNumber(Int128 x, Int128 y) => MaxMagnitude(x, y); 1450/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 1490/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 1491static Int128 INumberBase<Int128>.MinMagnitudeNumber(Int128 x, Int128 y) => MinMagnitude(x, y); 1493/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 1494static Int128 INumberBase<Int128>.MultiplyAddEstimate(Int128 left, Int128 right, Int128 addend) => (left * right) + addend; 1496/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 1498static bool INumberBase<Int128>.TryConvertFromChecked<TOther>(TOther value, out Int128 result) => TryConvertFromChecked(value, out result); 1502where TOther : INumberBase<TOther> 1568/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 1570static bool INumberBase<Int128>.TryConvertFromSaturating<TOther>(TOther value, out Int128 result) => TryConvertFromSaturating(value, out result); 1574where TOther : INumberBase<TOther> 1640/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 1642static bool INumberBase<Int128>.TryConvertFromTruncating<TOther>(TOther value, out Int128 result) => TryConvertFromTruncating(value, out result); 1646where TOther : INumberBase<TOther> 1712/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 1714static bool INumberBase<Int128>.TryConvertToChecked<TOther>(Int128 value, [MaybeNullWhen(false)] out TOther result) 1780/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 1782static bool INumberBase<Int128>.TryConvertToSaturating<TOther>(Int128 value, [MaybeNullWhen(false)] out TOther result) 1855/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 1857static bool INumberBase<Int128>.TryConvertToTruncating<TOther>(Int128 value, [MaybeNullWhen(false)] out TOther result) 2108/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 2115/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int16.cs (68)
663/// <inheritdoc cref="INumberBase{TSelf}.One" /> 664static short INumberBase<short>.One => One; 666/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 667static int INumberBase<short>.Radix => 2; 669/// <inheritdoc cref="INumberBase{TSelf}.Zero" /> 670static short INumberBase<short>.Zero => Zero; 672/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" /> 675/// <inheritdoc cref="INumberBase{TSelf}.CreateChecked{TOther}(TOther)" /> 678where TOther : INumberBase<TOther> 694/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" /> 697where TOther : INumberBase<TOther> 713/// <inheritdoc cref="INumberBase{TSelf}.CreateTruncating{TOther}(TOther)" /> 716where TOther : INumberBase<TOther> 732/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 733static bool INumberBase<short>.IsCanonical(short value) => true; 735/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 736static bool INumberBase<short>.IsComplexNumber(short value) => false; 738/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 741/// <inheritdoc cref="INumberBase{TSelf}.IsFinite(TSelf)" /> 742static bool INumberBase<short>.IsFinite(short value) => true; 744/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 745static bool INumberBase<short>.IsImaginaryNumber(short value) => false; 747/// <inheritdoc cref="INumberBase{TSelf}.IsInfinity(TSelf)" /> 748static bool INumberBase<short>.IsInfinity(short value) => false; 750/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 751static bool INumberBase<short>.IsInteger(short value) => true; 753/// <inheritdoc cref="INumberBase{TSelf}.IsNaN(TSelf)" /> 754static bool INumberBase<short>.IsNaN(short value) => false; 756/// <inheritdoc cref="INumberBase{TSelf}.IsNegative(TSelf)" /> 759/// <inheritdoc cref="INumberBase{TSelf}.IsNegativeInfinity(TSelf)" /> 760static bool INumberBase<short>.IsNegativeInfinity(short value) => false; 762/// <inheritdoc cref="INumberBase{TSelf}.IsNormal(TSelf)" /> 763static bool INumberBase<short>.IsNormal(short value) => value != 0; 765/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 768/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 771/// <inheritdoc cref="INumberBase{TSelf}.IsPositiveInfinity(TSelf)" /> 772static bool INumberBase<short>.IsPositiveInfinity(short value) => false; 774/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 775static bool INumberBase<short>.IsRealNumber(short value) => true; 777/// <inheritdoc cref="INumberBase{TSelf}.IsSubnormal(TSelf)" /> 778static bool INumberBase<short>.IsSubnormal(short value) => false; 780/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 781static bool INumberBase<short>.IsZero(short value) => (value == 0); 783/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 823/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 824static short INumberBase<short>.MaxMagnitudeNumber(short x, short y) => MaxMagnitude(x, y); 826/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 866/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 867static short INumberBase<short>.MinMagnitudeNumber(short x, short y) => MinMagnitude(x, y); 869/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 870static short INumberBase<short>.MultiplyAddEstimate(short left, short right, short addend) => (short)((left * right) + addend); 872/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 874static bool INumberBase<short>.TryConvertFromChecked<TOther>(TOther value, out short result) => TryConvertFromChecked(value, out result); 878where TOther : INumberBase<TOther> 944/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 946static bool INumberBase<short>.TryConvertFromSaturating<TOther>(TOther value, out short result) => TryConvertFromSaturating(value, out result); 950where TOther : INumberBase<TOther> 1023/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 1025static bool INumberBase<short>.TryConvertFromTruncating<TOther>(TOther value, out short result) => TryConvertFromTruncating(value, out result); 1029where TOther : INumberBase<TOther> 1098/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 1100static bool INumberBase<short>.TryConvertToChecked<TOther>(short value, [MaybeNullWhen(false)] out TOther result) 1166/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 1168static bool INumberBase<short>.TryConvertToSaturating<TOther>(short value, [MaybeNullWhen(false)] out TOther result) 1235/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 1237static bool INumberBase<short>.TryConvertToTruncating<TOther>(short value, [MaybeNullWhen(false)] out TOther result) 1371/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1378/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int32.cs (68)
704/// <inheritdoc cref="INumberBase{TSelf}.One" /> 705static int INumberBase<int>.One => One; 707/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 708static int INumberBase<int>.Radix => 2; 710/// <inheritdoc cref="INumberBase{TSelf}.Zero" /> 711static int INumberBase<int>.Zero => Zero; 713/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" /> 716/// <inheritdoc cref="INumberBase{TSelf}.CreateChecked{TOther}(TOther)" /> 719where TOther : INumberBase<TOther> 735/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" /> 738where TOther : INumberBase<TOther> 754/// <inheritdoc cref="INumberBase{TSelf}.CreateTruncating{TOther}(TOther)" /> 757where TOther : INumberBase<TOther> 773/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 774static bool INumberBase<int>.IsCanonical(int value) => true; 776/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 777static bool INumberBase<int>.IsComplexNumber(int value) => false; 779/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 782/// <inheritdoc cref="INumberBase{TSelf}.IsFinite(TSelf)" /> 783static bool INumberBase<int>.IsFinite(int value) => true; 785/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 786static bool INumberBase<int>.IsImaginaryNumber(int value) => false; 788/// <inheritdoc cref="INumberBase{TSelf}.IsInfinity(TSelf)" /> 789static bool INumberBase<int>.IsInfinity(int value) => false; 791/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 792static bool INumberBase<int>.IsInteger(int value) => true; 794/// <inheritdoc cref="INumberBase{TSelf}.IsNaN(TSelf)" /> 795static bool INumberBase<int>.IsNaN(int value) => false; 797/// <inheritdoc cref="INumberBase{TSelf}.IsNegative(TSelf)" /> 800/// <inheritdoc cref="INumberBase{TSelf}.IsNegativeInfinity(TSelf)" /> 801static bool INumberBase<int>.IsNegativeInfinity(int value) => false; 803/// <inheritdoc cref="INumberBase{TSelf}.IsNormal(TSelf)" /> 804static bool INumberBase<int>.IsNormal(int value) => value != 0; 806/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 809/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 812/// <inheritdoc cref="INumberBase{TSelf}.IsPositiveInfinity(TSelf)" /> 813static bool INumberBase<int>.IsPositiveInfinity(int value) => false; 815/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 816static bool INumberBase<int>.IsRealNumber(int value) => true; 818/// <inheritdoc cref="INumberBase{TSelf}.IsSubnormal(TSelf)" /> 819static bool INumberBase<int>.IsSubnormal(int value) => false; 821/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 822static bool INumberBase<int>.IsZero(int value) => (value == 0); 824/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 864/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 865static int INumberBase<int>.MaxMagnitudeNumber(int x, int y) => MaxMagnitude(x, y); 867/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 907/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 908static int INumberBase<int>.MinMagnitudeNumber(int x, int y) => MinMagnitude(x, y); 910/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 911static int INumberBase<int>.MultiplyAddEstimate(int left, int right, int addend) => (left * right) + addend; 913/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 915static bool INumberBase<int>.TryConvertFromChecked<TOther>(TOther value, out int result) => TryConvertFromChecked(value, out result); 919where TOther : INumberBase<TOther> 985/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 987static bool INumberBase<int>.TryConvertFromSaturating<TOther>(TOther value, out int result) => TryConvertFromSaturating(value, out result); 991where TOther : INumberBase<TOther> 1075/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 1077static bool INumberBase<int>.TryConvertFromTruncating<TOther>(TOther value, out int result) => TryConvertFromTruncating(value, out result); 1081where TOther : INumberBase<TOther> 1162/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 1164static bool INumberBase<int>.TryConvertToChecked<TOther>(int value, [MaybeNullWhen(false)] out TOther result) 1230/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 1232static bool INumberBase<int>.TryConvertToSaturating<TOther>(int value, [MaybeNullWhen(false)] out TOther result) 1301/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 1303static bool INumberBase<int>.TryConvertToTruncating<TOther>(int value, [MaybeNullWhen(false)] out TOther result) 1437/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1444/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int64.cs (68)
701/// <inheritdoc cref="INumberBase{TSelf}.One" /> 702static long INumberBase<long>.One => One; 704/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 705static int INumberBase<long>.Radix => 2; 707/// <inheritdoc cref="INumberBase{TSelf}.Zero" /> 708static long INumberBase<long>.Zero => Zero; 710/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" /> 713/// <inheritdoc cref="INumberBase{TSelf}.CreateChecked{TOther}(TOther)" /> 716where TOther : INumberBase<TOther> 732/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" /> 735where TOther : INumberBase<TOther> 751/// <inheritdoc cref="INumberBase{TSelf}.CreateTruncating{TOther}(TOther)" /> 754where TOther : INumberBase<TOther> 770/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 771static bool INumberBase<long>.IsCanonical(long value) => true; 773/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 774static bool INumberBase<long>.IsComplexNumber(long value) => false; 776/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 779/// <inheritdoc cref="INumberBase{TSelf}.IsFinite(TSelf)" /> 780static bool INumberBase<long>.IsFinite(long value) => true; 782/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 783static bool INumberBase<long>.IsImaginaryNumber(long value) => false; 785/// <inheritdoc cref="INumberBase{TSelf}.IsInfinity(TSelf)" /> 786static bool INumberBase<long>.IsInfinity(long value) => false; 788/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 789static bool INumberBase<long>.IsInteger(long value) => true; 791/// <inheritdoc cref="INumberBase{TSelf}.IsNaN(TSelf)" /> 792static bool INumberBase<long>.IsNaN(long value) => false; 794/// <inheritdoc cref="INumberBase{TSelf}.IsNegative(TSelf)" /> 797/// <inheritdoc cref="INumberBase{TSelf}.IsNegativeInfinity(TSelf)" /> 798static bool INumberBase<long>.IsNegativeInfinity(long value) => false; 800/// <inheritdoc cref="INumberBase{TSelf}.IsNormal(TSelf)" /> 801static bool INumberBase<long>.IsNormal(long value) => value != 0; 803/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 806/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 809/// <inheritdoc cref="INumberBase{TSelf}.IsPositiveInfinity(TSelf)" /> 810static bool INumberBase<long>.IsPositiveInfinity(long value) => false; 812/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 813static bool INumberBase<long>.IsRealNumber(long value) => true; 815/// <inheritdoc cref="INumberBase{TSelf}.IsSubnormal(TSelf)" /> 816static bool INumberBase<long>.IsSubnormal(long value) => false; 818/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 819static bool INumberBase<long>.IsZero(long value) => (value == 0); 821/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 861/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 862static long INumberBase<long>.MaxMagnitudeNumber(long x, long y) => MaxMagnitude(x, y); 864/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 904/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 905static long INumberBase<long>.MinMagnitudeNumber(long x, long y) => MinMagnitude(x, y); 907/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 908static long INumberBase<long>.MultiplyAddEstimate(long left, long right, long addend) => (long)((left * right) + addend); 910/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 912static bool INumberBase<long>.TryConvertFromChecked<TOther>(TOther value, out long result) => TryConvertFromChecked(value, out result); 916where TOther : INumberBase<TOther> 982/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 984static bool INumberBase<long>.TryConvertFromSaturating<TOther>(TOther value, out long result) => TryConvertFromSaturating(value, out result); 988where TOther : INumberBase<TOther> 1070/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 1072static bool INumberBase<long>.TryConvertFromTruncating<TOther>(TOther value, out long result) => TryConvertFromTruncating(value, out result); 1076where TOther : INumberBase<TOther> 1157/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 1159static bool INumberBase<long>.TryConvertToChecked<TOther>(long value, [MaybeNullWhen(false)] out TOther result) 1225/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 1227static bool INumberBase<long>.TryConvertToSaturating<TOther>(long value, [MaybeNullWhen(false)] out TOther result) 1304/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 1306static bool INumberBase<long>.TryConvertToTruncating<TOther>(long value, [MaybeNullWhen(false)] out TOther result) 1440/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1447/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (68)
714/// <inheritdoc cref="INumberBase{TSelf}.One" /> 715static nint INumberBase<nint>.One => 1; 717/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 718static int INumberBase<nint>.Radix => 2; 720/// <inheritdoc cref="INumberBase{TSelf}.Zero" /> 721static nint INumberBase<nint>.Zero => 0; 723/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" /> 726/// <inheritdoc cref="INumberBase{TSelf}.CreateChecked{TOther}(TOther)" /> 729where TOther : INumberBase<TOther> 745/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" /> 748where TOther : INumberBase<TOther> 764/// <inheritdoc cref="INumberBase{TSelf}.CreateTruncating{TOther}(TOther)" /> 767where TOther : INumberBase<TOther> 783/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 784static bool INumberBase<nint>.IsCanonical(nint value) => true; 786/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 787static bool INumberBase<nint>.IsComplexNumber(nint value) => false; 789/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 792/// <inheritdoc cref="INumberBase{TSelf}.IsFinite(TSelf)" /> 793static bool INumberBase<nint>.IsFinite(nint value) => true; 795/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 796static bool INumberBase<nint>.IsImaginaryNumber(nint value) => false; 798/// <inheritdoc cref="INumberBase{TSelf}.IsInfinity(TSelf)" /> 799static bool INumberBase<nint>.IsInfinity(nint value) => false; 801/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 802static bool INumberBase<nint>.IsInteger(nint value) => true; 804/// <inheritdoc cref="INumberBase{TSelf}.IsNaN(TSelf)" /> 805static bool INumberBase<nint>.IsNaN(nint value) => false; 807/// <inheritdoc cref="INumberBase{TSelf}.IsNegative(TSelf)" /> 810/// <inheritdoc cref="INumberBase{TSelf}.IsNegativeInfinity(TSelf)" /> 811static bool INumberBase<nint>.IsNegativeInfinity(nint value) => false; 813/// <inheritdoc cref="INumberBase{TSelf}.IsNormal(TSelf)" /> 814static bool INumberBase<nint>.IsNormal(nint value) => value != 0; 816/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 819/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 822/// <inheritdoc cref="INumberBase{TSelf}.IsPositiveInfinity(TSelf)" /> 823static bool INumberBase<nint>.IsPositiveInfinity(nint value) => false; 825/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 826static bool INumberBase<nint>.IsRealNumber(nint value) => true; 828/// <inheritdoc cref="INumberBase{TSelf}.IsSubnormal(TSelf)" /> 829static bool INumberBase<nint>.IsSubnormal(nint value) => false; 831/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 832static bool INumberBase<nint>.IsZero(nint value) => (value == 0); 834/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 874/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 875static nint INumberBase<nint>.MaxMagnitudeNumber(nint x, nint y) => MaxMagnitude(x, y); 877/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 917/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 918static nint INumberBase<nint>.MinMagnitudeNumber(nint x, nint y) => MinMagnitude(x, y); 920/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 921static nint INumberBase<nint>.MultiplyAddEstimate(nint left, nint right, nint addend) => (left * right) + addend; 923/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 925static bool INumberBase<nint>.TryConvertFromChecked<TOther>(TOther value, out nint result) => TryConvertFromChecked(value, out result); 929where TOther : INumberBase<TOther> 995/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 997static bool INumberBase<nint>.TryConvertFromSaturating<TOther>(TOther value, out nint result) => TryConvertFromSaturating(value, out result); 1001where TOther : INumberBase<TOther> 1084/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 1086static bool INumberBase<nint>.TryConvertFromTruncating<TOther>(TOther value, out nint result) => TryConvertFromTruncating(value, out result); 1090where TOther : INumberBase<TOther> 1171/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 1173static bool INumberBase<nint>.TryConvertToChecked<TOther>(nint value, [MaybeNullWhen(false)] out TOther result) 1239/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 1241static bool INumberBase<nint>.TryConvertToSaturating<TOther>(nint value, [MaybeNullWhen(false)] out TOther result) 1311/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 1313static bool INumberBase<nint>.TryConvertToTruncating<TOther>(nint value, [MaybeNullWhen(false)] out TOther result) 1430/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1433/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (44)
1386/// <inheritdoc cref="INumberBase{TSelf}.One" /> 1389/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 1390static int INumberBase<BFloat16>.Radix => 2; 1392/// <inheritdoc cref="INumberBase{TSelf}.Zero" /> 1395/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" /> 1398/// <inheritdoc cref="INumberBase{TSelf}.CreateChecked{TOther}(TOther)" /> 1401where TOther : INumberBase<TOther> 1417/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" /> 1420where TOther : INumberBase<TOther> 1436/// <inheritdoc cref="INumberBase{TSelf}.CreateTruncating{TOther}(TOther)" /> 1439where TOther : INumberBase<TOther> 1455/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 1456static bool INumberBase<BFloat16>.IsCanonical(BFloat16 value) => true; 1458/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 1459static bool INumberBase<BFloat16>.IsComplexNumber(BFloat16 value) => false; 1461/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 1464/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 1465static bool INumberBase<BFloat16>.IsImaginaryNumber(BFloat16 value) => false; 1467/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 1470/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 1473/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 1476/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 1487/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 1488static bool INumberBase<BFloat16>.IsZero(BFloat16 value) => IsZero(value); 1490/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 1493/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 1518/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 1521/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 1546/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 1548static bool INumberBase<BFloat16>.TryConvertFromChecked<TOther>(TOther value, out BFloat16 result) 1553/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 1555static bool INumberBase<BFloat16>.TryConvertFromSaturating<TOther>(TOther value, out BFloat16 result) 1560/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 1562static bool INumberBase<BFloat16>.TryConvertFromTruncating<TOther>(TOther value, out BFloat16 result) 1569where TOther : INumberBase<TOther> 1683/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 1685static bool INumberBase<BFloat16>.TryConvertToChecked<TOther>(BFloat16 value, [MaybeNullWhen(false)] out TOther result) 1799/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 1801static bool INumberBase<BFloat16>.TryConvertToSaturating<TOther>(BFloat16 value, [MaybeNullWhen(false)] out TOther result) 1806/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 1808static bool INumberBase<BFloat16>.TryConvertToTruncating<TOther>(BFloat16 value, [MaybeNullWhen(false)] out TOther result) 1815where TOther : INumberBase<TOther> 2088/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 2095/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Numerics\INumberBase.cs (10)
32where TSelf : INumberBase<TSelf>? 58where TOther : INumberBase<TOther> 83where TOther : INumberBase<TOther> 108where TOther : INumberBase<TOther> 359where TOther : INumberBase<TOther>; 369where TOther : INumberBase<TOther>; 379where TOther : INumberBase<TOther>; 390where TOther : INumberBase<TOther>; 400where TOther : INumberBase<TOther>; 410where TOther : INumberBase<TOther>;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (47)
1281/// <inheritdoc cref="INumberBase{TSelf}.One" /> 1282static NFloat INumberBase<NFloat>.One => new NFloat(NativeType.One); 1284/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 1285static int INumberBase<NFloat>.Radix => 2; 1287/// <inheritdoc cref="INumberBase{TSelf}.Zero" /> 1288static NFloat INumberBase<NFloat>.Zero => new NFloat(NativeType.Zero); 1290/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" /> 1293/// <inheritdoc cref="INumberBase{TSelf}.CreateChecked{TOther}(TOther)" /> 1296where TOther : INumberBase<TOther> 1312/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" /> 1315where TOther : INumberBase<TOther> 1331/// <inheritdoc cref="INumberBase{TSelf}.CreateTruncating{TOther}(TOther)" /> 1334where TOther : INumberBase<TOther> 1350/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 1351static bool INumberBase<NFloat>.IsCanonical(NFloat value) => true; 1353/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 1354static bool INumberBase<NFloat>.IsComplexNumber(NFloat value) => false; 1356/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 1359/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 1360static bool INumberBase<NFloat>.IsImaginaryNumber(NFloat value) => false; 1362/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 1365/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 1368/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 1371/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 1374/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 1375static bool INumberBase<NFloat>.IsZero(NFloat value) => (value == 0); 1377/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 1380/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 1383/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 1386/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 1389/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 1392/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 1394static bool INumberBase<NFloat>.TryConvertFromChecked<TOther>(TOther value, out NFloat result) 1399/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 1401static bool INumberBase<NFloat>.TryConvertFromSaturating<TOther>(TOther value, out NFloat result) 1406/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 1408static bool INumberBase<NFloat>.TryConvertFromTruncating<TOther>(TOther value, out NFloat result) 1415where TOther : INumberBase<TOther> 1526/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 1528static bool INumberBase<NFloat>.TryConvertToChecked<TOther>(NFloat value, [MaybeNullWhen(false)] out TOther result) 1639/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 1641static bool INumberBase<NFloat>.TryConvertToSaturating<TOther>(NFloat value, [MaybeNullWhen(false)] out TOther result) 1646/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 1648static bool INumberBase<NFloat>.TryConvertToTruncating<TOther>(NFloat value, [MaybeNullWhen(false)] out TOther result) 1655where TOther : INumberBase<TOther> 1912/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1919/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\SByte.cs (68)
626/// <inheritdoc cref="INumberBase{TSelf}.One" /> 627static sbyte INumberBase<sbyte>.One => One; 629/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 630static int INumberBase<sbyte>.Radix => 2; 632/// <inheritdoc cref="INumberBase{TSelf}.Zero" /> 633static sbyte INumberBase<sbyte>.Zero => Zero; 635/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" /> 638/// <inheritdoc cref="INumberBase{TSelf}.CreateChecked{TOther}(TOther)" /> 641where TOther : INumberBase<TOther> 657/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" /> 660where TOther : INumberBase<TOther> 676/// <inheritdoc cref="INumberBase{TSelf}.CreateTruncating{TOther}(TOther)" /> 679where TOther : INumberBase<TOther> 695/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 696static bool INumberBase<sbyte>.IsCanonical(sbyte value) => true; 698/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 699static bool INumberBase<sbyte>.IsComplexNumber(sbyte value) => false; 701/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 704/// <inheritdoc cref="INumberBase{TSelf}.IsFinite(TSelf)" /> 705static bool INumberBase<sbyte>.IsFinite(sbyte value) => true; 707/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 708static bool INumberBase<sbyte>.IsImaginaryNumber(sbyte value) => false; 710/// <inheritdoc cref="INumberBase{TSelf}.IsInfinity(TSelf)" /> 711static bool INumberBase<sbyte>.IsInfinity(sbyte value) => false; 713/// <inheritdoc cref="INumberBase{TSelf}.IsNaN(TSelf)" /> 714static bool INumberBase<sbyte>.IsNaN(sbyte value) => false; 716/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 717static bool INumberBase<sbyte>.IsInteger(sbyte value) => true; 719/// <inheritdoc cref="INumberBase{TSelf}.IsNegative(TSelf)" /> 722/// <inheritdoc cref="INumberBase{TSelf}.IsNegativeInfinity(TSelf)" /> 723static bool INumberBase<sbyte>.IsNegativeInfinity(sbyte value) => false; 725/// <inheritdoc cref="INumberBase{TSelf}.IsNormal(TSelf)" /> 726static bool INumberBase<sbyte>.IsNormal(sbyte value) => value != 0; 728/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 731/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 734/// <inheritdoc cref="INumberBase{TSelf}.IsPositiveInfinity(TSelf)" /> 735static bool INumberBase<sbyte>.IsPositiveInfinity(sbyte value) => false; 737/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 738static bool INumberBase<sbyte>.IsRealNumber(sbyte value) => true; 740/// <inheritdoc cref="INumberBase{TSelf}.IsSubnormal(TSelf)" /> 741static bool INumberBase<sbyte>.IsSubnormal(sbyte value) => false; 743/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 744static bool INumberBase<sbyte>.IsZero(sbyte value) => (value == 0); 746/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 786/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 787static sbyte INumberBase<sbyte>.MaxMagnitudeNumber(sbyte x, sbyte y) => MaxMagnitude(x, y); 789/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 829/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 830static sbyte INumberBase<sbyte>.MinMagnitudeNumber(sbyte x, sbyte y) => MinMagnitude(x, y); 832/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 833static sbyte INumberBase<sbyte>.MultiplyAddEstimate(sbyte left, sbyte right, sbyte addend) => (sbyte)((left * right) + addend); 835/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 837static bool INumberBase<sbyte>.TryConvertFromChecked<TOther>(TOther value, out sbyte result) => TryConvertFromChecked(value, out result); 841where TOther : INumberBase<TOther> 907/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 909static bool INumberBase<sbyte>.TryConvertFromSaturating<TOther>(TOther value, out sbyte result) => TryConvertFromSaturating(value, out result); 913where TOther : INumberBase<TOther> 987/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 989static bool INumberBase<sbyte>.TryConvertFromTruncating<TOther>(TOther value, out sbyte result) => TryConvertFromTruncating(value, out result); 993where TOther : INumberBase<TOther> 1062/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 1064static bool INumberBase<sbyte>.TryConvertToChecked<TOther>(sbyte value, [MaybeNullWhen(false)] out TOther result) 1130/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 1132static bool INumberBase<sbyte>.TryConvertToSaturating<TOther>(sbyte value, [MaybeNullWhen(false)] out TOther result) 1198/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 1200static bool INumberBase<sbyte>.TryConvertToTruncating<TOther>(sbyte value, [MaybeNullWhen(false)] out TOther result) 1334/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1341/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Single.cs (47)
1031/// <inheritdoc cref="INumberBase{TSelf}.One" /> 1032static float INumberBase<float>.One => One; 1034/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 1035static int INumberBase<float>.Radix => 2; 1037/// <inheritdoc cref="INumberBase{TSelf}.Zero" /> 1038static float INumberBase<float>.Zero => Zero; 1040/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" /> 1044/// <inheritdoc cref="INumberBase{TSelf}.CreateChecked{TOther}(TOther)" /> 1047where TOther : INumberBase<TOther> 1063/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" /> 1066where TOther : INumberBase<TOther> 1082/// <inheritdoc cref="INumberBase{TSelf}.CreateTruncating{TOther}(TOther)" /> 1085where TOther : INumberBase<TOther> 1101/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 1102static bool INumberBase<float>.IsCanonical(float value) => true; 1104/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 1105static bool INumberBase<float>.IsComplexNumber(float value) => false; 1107/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 1130/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 1131static bool INumberBase<float>.IsImaginaryNumber(float value) => false; 1133/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 1136/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 1139/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 1142/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 1153/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 1154static bool INumberBase<float>.IsZero(float value) => IsZero(value); 1156/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 1160/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 1186/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 1190/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 1218/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 1229/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 1231static bool INumberBase<float>.TryConvertFromChecked<TOther>(TOther value, out float result) 1236/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 1238static bool INumberBase<float>.TryConvertFromSaturating<TOther>(TOther value, out float result) 1243/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 1245static bool INumberBase<float>.TryConvertFromTruncating<TOther>(TOther value, out float result) 1252where TOther : INumberBase<TOther> 1318/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 1320static bool INumberBase<float>.TryConvertToChecked<TOther>(float value, [MaybeNullWhen(false)] out TOther result) 1386/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 1388static bool INumberBase<float>.TryConvertToSaturating<TOther>(float value, [MaybeNullWhen(false)] out TOther result) 1393/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 1395static bool INumberBase<float>.TryConvertToTruncating<TOther>(float value, [MaybeNullWhen(false)] out TOther result) 1402where TOther : INumberBase<TOther> 2180/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 2187/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Equality.cs (7)
43where TLeft : unmanaged, INumberBase<TLeft> 44where TRight : unmanaged, INumberBase<TRight> 197where TLeft : unmanaged, INumberBase<TLeft> 198where TRight : unmanaged, INumberBase<TRight> 456where TLeft : unmanaged, INumberBase<TLeft> 457where TRight : unmanaged, INumberBase<TRight> 466private readonly struct PlainLoader<T> : ILoader<T, T> where T : unmanaged, INumberBase<T>
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (71)
1441/// <inheritdoc cref="INumberBase{TSelf}.One" /> 1444/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 1445static int INumberBase<UInt128>.Radix => 2; 1447/// <inheritdoc cref="INumberBase{TSelf}.Zero" /> 1450/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" /> 1451static UInt128 INumberBase<UInt128>.Abs(UInt128 value) => value; 1453/// <inheritdoc cref="INumberBase{TSelf}.CreateChecked{TOther}(TOther)" /> 1456where TOther : INumberBase<TOther> 1472/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" /> 1475where TOther : INumberBase<TOther> 1491/// <inheritdoc cref="INumberBase{TSelf}.CreateTruncating{TOther}(TOther)" /> 1494where TOther : INumberBase<TOther> 1510/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 1511static bool INumberBase<UInt128>.IsCanonical(UInt128 value) => true; 1513/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 1514static bool INumberBase<UInt128>.IsComplexNumber(UInt128 value) => false; 1516/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 1519/// <inheritdoc cref="INumberBase{TSelf}.IsFinite(TSelf)" /> 1520static bool INumberBase<UInt128>.IsFinite(UInt128 value) => true; 1522/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 1523static bool INumberBase<UInt128>.IsImaginaryNumber(UInt128 value) => false; 1525/// <inheritdoc cref="INumberBase{TSelf}.IsInfinity(TSelf)" /> 1526static bool INumberBase<UInt128>.IsInfinity(UInt128 value) => false; 1528/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 1529static bool INumberBase<UInt128>.IsInteger(UInt128 value) => true; 1531/// <inheritdoc cref="INumberBase{TSelf}.IsNaN(TSelf)" /> 1532static bool INumberBase<UInt128>.IsNaN(UInt128 value) => false; 1534/// <inheritdoc cref="INumberBase{TSelf}.IsNegative(TSelf)" /> 1535static bool INumberBase<UInt128>.IsNegative(UInt128 value) => false; 1537/// <inheritdoc cref="INumberBase{TSelf}.IsNegativeInfinity(TSelf)" /> 1538static bool INumberBase<UInt128>.IsNegativeInfinity(UInt128 value) => false; 1540/// <inheritdoc cref="INumberBase{TSelf}.IsNormal(TSelf)" /> 1541static bool INumberBase<UInt128>.IsNormal(UInt128 value) => value != 0U; 1543/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 1546/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 1547static bool INumberBase<UInt128>.IsPositive(UInt128 value) => true; 1549/// <inheritdoc cref="INumberBase{TSelf}.IsPositiveInfinity(TSelf)" /> 1550static bool INumberBase<UInt128>.IsPositiveInfinity(UInt128 value) => false; 1552/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 1553static bool INumberBase<UInt128>.IsRealNumber(UInt128 value) => true; 1555/// <inheritdoc cref="INumberBase{TSelf}.IsSubnormal(TSelf)" /> 1556static bool INumberBase<UInt128>.IsSubnormal(UInt128 value) => false; 1558/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 1559static bool INumberBase<UInt128>.IsZero(UInt128 value) => (value == 0U); 1561/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 1562static UInt128 INumberBase<UInt128>.MaxMagnitude(UInt128 x, UInt128 y) => Max(x, y); 1564/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 1565static UInt128 INumberBase<UInt128>.MaxMagnitudeNumber(UInt128 x, UInt128 y) => Max(x, y); 1567/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 1568static UInt128 INumberBase<UInt128>.MinMagnitude(UInt128 x, UInt128 y) => Min(x, y); 1570/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 1571static UInt128 INumberBase<UInt128>.MinMagnitudeNumber(UInt128 x, UInt128 y) => Min(x, y); 1573/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 1574static UInt128 INumberBase<UInt128>.MultiplyAddEstimate(UInt128 left, UInt128 right, UInt128 addend) => (left * right) + addend; 1576/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 1578static bool INumberBase<UInt128>.TryConvertFromChecked<TOther>(TOther value, out UInt128 result) => TryConvertFromChecked(value, out result); 1582where TOther : INumberBase<TOther> 1642/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 1644static bool INumberBase<UInt128>.TryConvertFromSaturating<TOther>(TOther value, out UInt128 result) => TryConvertFromSaturating(value, out result); 1648where TOther : INumberBase<TOther> 1708/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 1710static bool INumberBase<UInt128>.TryConvertFromTruncating<TOther>(TOther value, out UInt128 result) => TryConvertFromTruncating(value, out result); 1714where TOther : INumberBase<TOther> 1774/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 1776static bool INumberBase<UInt128>.TryConvertToChecked<TOther>(UInt128 value, [MaybeNullWhen(false)] out TOther result) 1848/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 1850static bool INumberBase<UInt128>.TryConvertToSaturating<TOther>(UInt128 value, [MaybeNullWhen(false)] out TOther result) 1928/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 1930static bool INumberBase<UInt128>.TryConvertToTruncating<TOther>(UInt128 value, [MaybeNullWhen(false)] out TOther result) 2143/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 2150/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (73)
568/// <inheritdoc cref="INumberBase{TSelf}.One" /> 569static ushort INumberBase<ushort>.One => One; 571/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 572static int INumberBase<ushort>.Radix => 2; 574/// <inheritdoc cref="INumberBase{TSelf}.Zero" /> 575static ushort INumberBase<ushort>.Zero => Zero; 577/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" /> 578static ushort INumberBase<ushort>.Abs(ushort value) => value; 580/// <inheritdoc cref="INumberBase{TSelf}.CreateChecked{TOther}(TOther)" /> 583where TOther : INumberBase<TOther> 599/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" /> 602where TOther : INumberBase<TOther> 618/// <inheritdoc cref="INumberBase{TSelf}.CreateTruncating{TOther}(TOther)" /> 621where TOther : INumberBase<TOther> 637/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 638static bool INumberBase<ushort>.IsCanonical(ushort value) => true; 640/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 641static bool INumberBase<ushort>.IsComplexNumber(ushort value) => false; 643/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 646/// <inheritdoc cref="INumberBase{TSelf}.IsFinite(TSelf)" /> 647static bool INumberBase<ushort>.IsFinite(ushort value) => true; 649/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 650static bool INumberBase<ushort>.IsImaginaryNumber(ushort value) => false; 652/// <inheritdoc cref="INumberBase{TSelf}.IsInfinity(TSelf)" /> 653static bool INumberBase<ushort>.IsInfinity(ushort value) => false; 655/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 656static bool INumberBase<ushort>.IsInteger(ushort value) => true; 658/// <inheritdoc cref="INumberBase{TSelf}.IsNaN(TSelf)" /> 659static bool INumberBase<ushort>.IsNaN(ushort value) => false; 661/// <inheritdoc cref="INumberBase{TSelf}.IsNegative(TSelf)" /> 662static bool INumberBase<ushort>.IsNegative(ushort value) => false; 664/// <inheritdoc cref="INumberBase{TSelf}.IsNegativeInfinity(TSelf)" /> 665static bool INumberBase<ushort>.IsNegativeInfinity(ushort value) => false; 667/// <inheritdoc cref="INumberBase{TSelf}.IsNormal(TSelf)" /> 668static bool INumberBase<ushort>.IsNormal(ushort value) => value != 0; 670/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 673/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 674static bool INumberBase<ushort>.IsPositive(ushort value) => true; 676/// <inheritdoc cref="INumberBase{TSelf}.IsPositiveInfinity(TSelf)" /> 677static bool INumberBase<ushort>.IsPositiveInfinity(ushort value) => false; 679/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 680static bool INumberBase<ushort>.IsRealNumber(ushort value) => true; 682/// <inheritdoc cref="INumberBase{TSelf}.IsSubnormal(TSelf)" /> 683static bool INumberBase<ushort>.IsSubnormal(ushort value) => false; 685/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 686static bool INumberBase<ushort>.IsZero(ushort value) => (value == 0); 688/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 689static ushort INumberBase<ushort>.MaxMagnitude(ushort x, ushort y) => Max(x, y); 691/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 692static ushort INumberBase<ushort>.MaxMagnitudeNumber(ushort x, ushort y) => Max(x, y); 694/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 695static ushort INumberBase<ushort>.MinMagnitude(ushort x, ushort y) => Min(x, y); 697/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 698static ushort INumberBase<ushort>.MinMagnitudeNumber(ushort x, ushort y) => Min(x, y); 700/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 701static ushort INumberBase<ushort>.MultiplyAddEstimate(ushort left, ushort right, ushort addend) => (ushort)((left * right) + addend); 703/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 705static bool INumberBase<ushort>.TryConvertFromChecked<TOther>(TOther value, out ushort result) => TryConvertFromChecked(value, out result); 709where TOther : INumberBase<TOther> 769/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 771static bool INumberBase<ushort>.TryConvertFromSaturating<TOther>(TOther value, out ushort result) => TryConvertFromSaturating(value, out result); 775where TOther : INumberBase<TOther> 836/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 838static bool INumberBase<ushort>.TryConvertFromTruncating<TOther>(TOther value, out ushort result) => TryConvertFromTruncating(value, out result); 842where TOther : INumberBase<TOther> 903/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 905static bool INumberBase<ushort>.TryConvertToChecked<TOther>(ushort value, [MaybeNullWhen(false)] out TOther result) 977/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 979static bool INumberBase<ushort>.TryConvertToSaturating<TOther>(ushort value, [MaybeNullWhen(false)] out TOther result) 1051/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 1053static bool INumberBase<ushort>.TryConvertToTruncating<TOther>(ushort value, [MaybeNullWhen(false)] out TOther result) 1186/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1193/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (73)
607/// <inheritdoc cref="INumberBase{TSelf}.One" /> 608static uint INumberBase<uint>.One => One; 610/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 611static int INumberBase<uint>.Radix => 2; 613/// <inheritdoc cref="INumberBase{TSelf}.Zero" /> 614static uint INumberBase<uint>.Zero => Zero; 616/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" /> 617static uint INumberBase<uint>.Abs(uint value) => value; 619/// <inheritdoc cref="INumberBase{TSelf}.CreateChecked{TOther}(TOther)" /> 622where TOther : INumberBase<TOther> 638/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" /> 641where TOther : INumberBase<TOther> 657/// <inheritdoc cref="INumberBase{TSelf}.CreateTruncating{TOther}(TOther)" /> 660where TOther : INumberBase<TOther> 676/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 677static bool INumberBase<uint>.IsCanonical(uint value) => true; 679/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 680static bool INumberBase<uint>.IsComplexNumber(uint value) => false; 682/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 685/// <inheritdoc cref="INumberBase{TSelf}.IsFinite(TSelf)" /> 686static bool INumberBase<uint>.IsFinite(uint value) => true; 688/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 689static bool INumberBase<uint>.IsImaginaryNumber(uint value) => false; 691/// <inheritdoc cref="INumberBase{TSelf}.IsInfinity(TSelf)" /> 692static bool INumberBase<uint>.IsInfinity(uint value) => false; 694/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 695static bool INumberBase<uint>.IsInteger(uint value) => true; 697/// <inheritdoc cref="INumberBase{TSelf}.IsNaN(TSelf)" /> 698static bool INumberBase<uint>.IsNaN(uint value) => false; 700/// <inheritdoc cref="INumberBase{TSelf}.IsNegative(TSelf)" /> 701static bool INumberBase<uint>.IsNegative(uint value) => false; 703/// <inheritdoc cref="INumberBase{TSelf}.IsNegativeInfinity(TSelf)" /> 704static bool INumberBase<uint>.IsNegativeInfinity(uint value) => false; 706/// <inheritdoc cref="INumberBase{TSelf}.IsNormal(TSelf)" /> 707static bool INumberBase<uint>.IsNormal(uint value) => value != 0; 709/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 712/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 713static bool INumberBase<uint>.IsPositive(uint value) => true; 715/// <inheritdoc cref="INumberBase{TSelf}.IsPositiveInfinity(TSelf)" /> 716static bool INumberBase<uint>.IsPositiveInfinity(uint value) => false; 718/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 719static bool INumberBase<uint>.IsRealNumber(uint value) => true; 721/// <inheritdoc cref="INumberBase{TSelf}.IsSubnormal(TSelf)" /> 722static bool INumberBase<uint>.IsSubnormal(uint value) => false; 724/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 725static bool INumberBase<uint>.IsZero(uint value) => (value == 0); 727/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 728static uint INumberBase<uint>.MaxMagnitude(uint x, uint y) => Max(x, y); 730/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 731static uint INumberBase<uint>.MaxMagnitudeNumber(uint x, uint y) => Max(x, y); 733/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 734static uint INumberBase<uint>.MinMagnitude(uint x, uint y) => Min(x, y); 736/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 737static uint INumberBase<uint>.MinMagnitudeNumber(uint x, uint y) => Min(x, y); 739/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 740static uint INumberBase<uint>.MultiplyAddEstimate(uint left, uint right, uint addend) => (left * right) + addend; 742/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 744static bool INumberBase<uint>.TryConvertFromChecked<TOther>(TOther value, out uint result) => TryConvertFromChecked(value, out result); 748where TOther : INumberBase<TOther> 808/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 810static bool INumberBase<uint>.TryConvertFromSaturating<TOther>(TOther value, out uint result) => TryConvertFromSaturating(value, out result); 814where TOther : INumberBase<TOther> 875/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 877static bool INumberBase<uint>.TryConvertFromTruncating<TOther>(TOther value, out uint result) => TryConvertFromTruncating(value, out result); 881where TOther : INumberBase<TOther> 942/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 944static bool INumberBase<uint>.TryConvertToChecked<TOther>(uint value, [MaybeNullWhen(false)] out TOther result) 1016/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 1018static bool INumberBase<uint>.TryConvertToSaturating<TOther>(uint value, [MaybeNullWhen(false)] out TOther result) 1096/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 1098static bool INumberBase<uint>.TryConvertToTruncating<TOther>(uint value, [MaybeNullWhen(false)] out TOther result) 1231/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1238/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (73)
606/// <inheritdoc cref="INumberBase{TSelf}.One" /> 607static ulong INumberBase<ulong>.One => One; 609/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 610static int INumberBase<ulong>.Radix => 2; 612/// <inheritdoc cref="INumberBase{TSelf}.Zero" /> 613static ulong INumberBase<ulong>.Zero => Zero; 615/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" /> 616static ulong INumberBase<ulong>.Abs(ulong value) => value; 618/// <inheritdoc cref="INumberBase{TSelf}.CreateChecked{TOther}(TOther)" /> 621where TOther : INumberBase<TOther> 637/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" /> 640where TOther : INumberBase<TOther> 656/// <inheritdoc cref="INumberBase{TSelf}.CreateTruncating{TOther}(TOther)" /> 659where TOther : INumberBase<TOther> 675/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 676static bool INumberBase<ulong>.IsCanonical(ulong value) => true; 678/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 679static bool INumberBase<ulong>.IsComplexNumber(ulong value) => false; 681/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 684/// <inheritdoc cref="INumberBase{TSelf}.IsFinite(TSelf)" /> 685static bool INumberBase<ulong>.IsFinite(ulong value) => true; 687/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 688static bool INumberBase<ulong>.IsImaginaryNumber(ulong value) => false; 690/// <inheritdoc cref="INumberBase{TSelf}.IsInfinity(TSelf)" /> 691static bool INumberBase<ulong>.IsInfinity(ulong value) => false; 693/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 694static bool INumberBase<ulong>.IsInteger(ulong value) => true; 696/// <inheritdoc cref="INumberBase{TSelf}.IsNaN(TSelf)" /> 697static bool INumberBase<ulong>.IsNaN(ulong value) => false; 699/// <inheritdoc cref="INumberBase{TSelf}.IsNegative(TSelf)" /> 700static bool INumberBase<ulong>.IsNegative(ulong value) => false; 702/// <inheritdoc cref="INumberBase{TSelf}.IsNegativeInfinity(TSelf)" /> 703static bool INumberBase<ulong>.IsNegativeInfinity(ulong value) => false; 705/// <inheritdoc cref="INumberBase{TSelf}.IsNormal(TSelf)" /> 706static bool INumberBase<ulong>.IsNormal(ulong value) => value != 0; 708/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 711/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 712static bool INumberBase<ulong>.IsPositive(ulong value) => true; 714/// <inheritdoc cref="INumberBase{TSelf}.IsPositiveInfinity(TSelf)" /> 715static bool INumberBase<ulong>.IsPositiveInfinity(ulong value) => false; 717/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 718static bool INumberBase<ulong>.IsRealNumber(ulong value) => true; 720/// <inheritdoc cref="INumberBase{TSelf}.IsSubnormal(TSelf)" /> 721static bool INumberBase<ulong>.IsSubnormal(ulong value) => false; 723/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 724static bool INumberBase<ulong>.IsZero(ulong value) => (value == 0); 726/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 727static ulong INumberBase<ulong>.MaxMagnitude(ulong x, ulong y) => Max(x, y); 729/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 730static ulong INumberBase<ulong>.MaxMagnitudeNumber(ulong x, ulong y) => Max(x, y); 732/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 733static ulong INumberBase<ulong>.MinMagnitude(ulong x, ulong y) => Min(x, y); 735/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 736static ulong INumberBase<ulong>.MinMagnitudeNumber(ulong x, ulong y) => Min(x, y); 738/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 739static ulong INumberBase<ulong>.MultiplyAddEstimate(ulong left, ulong right, ulong addend) => (left * right) + addend; 741/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 743static bool INumberBase<ulong>.TryConvertFromChecked<TOther>(TOther value, out ulong result) => TryConvertFromChecked(value, out result); 747where TOther : INumberBase<TOther> 807/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 809static bool INumberBase<ulong>.TryConvertFromSaturating<TOther>(TOther value, out ulong result) => TryConvertFromSaturating(value, out result); 813where TOther : INumberBase<TOther> 874/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 876static bool INumberBase<ulong>.TryConvertFromTruncating<TOther>(TOther value, out ulong result) => TryConvertFromTruncating(value, out result); 880where TOther : INumberBase<TOther> 941/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 943static bool INumberBase<ulong>.TryConvertToChecked<TOther>(ulong value, [MaybeNullWhen(false)] out TOther result) 1015/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 1017static bool INumberBase<ulong>.TryConvertToSaturating<TOther>(ulong value, [MaybeNullWhen(false)] out TOther result) 1089/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 1091static bool INumberBase<ulong>.TryConvertToTruncating<TOther>(ulong value, [MaybeNullWhen(false)] out TOther result) 1224/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1231/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (73)
622/// <inheritdoc cref="INumberBase{TSelf}.One" /> 623static nuint INumberBase<nuint>.One => 1; 625/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 626static int INumberBase<nuint>.Radix => 2; 628/// <inheritdoc cref="INumberBase{TSelf}.Zero" /> 629static nuint INumberBase<nuint>.Zero => 0; 631/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" /> 632static nuint INumberBase<nuint>.Abs(nuint value) => value; 634/// <inheritdoc cref="INumberBase{TSelf}.CreateChecked{TOther}(TOther)" /> 637where TOther : INumberBase<TOther> 653/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" /> 656where TOther : INumberBase<TOther> 672/// <inheritdoc cref="INumberBase{TSelf}.CreateTruncating{TOther}(TOther)" /> 675where TOther : INumberBase<TOther> 691/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 692static bool INumberBase<nuint>.IsCanonical(nuint value) => true; 694/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 695static bool INumberBase<nuint>.IsComplexNumber(nuint value) => false; 697/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 700/// <inheritdoc cref="INumberBase{TSelf}.IsFinite(TSelf)" /> 701static bool INumberBase<nuint>.IsFinite(nuint value) => true; 703/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 704static bool INumberBase<nuint>.IsImaginaryNumber(nuint value) => false; 706/// <inheritdoc cref="INumberBase{TSelf}.IsInfinity(TSelf)" /> 707static bool INumberBase<nuint>.IsInfinity(nuint value) => false; 709/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 710static bool INumberBase<nuint>.IsInteger(nuint value) => true; 712/// <inheritdoc cref="INumberBase{TSelf}.IsNaN(TSelf)" /> 713static bool INumberBase<nuint>.IsNaN(nuint value) => false; 715/// <inheritdoc cref="INumberBase{TSelf}.IsNegative(TSelf)" /> 716static bool INumberBase<nuint>.IsNegative(nuint value) => false; 718/// <inheritdoc cref="INumberBase{TSelf}.IsNegativeInfinity(TSelf)" /> 719static bool INumberBase<nuint>.IsNegativeInfinity(nuint value) => false; 721/// <inheritdoc cref="INumberBase{TSelf}.IsNormal(TSelf)" /> 722static bool INumberBase<nuint>.IsNormal(nuint value) => value != 0; 724/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 727/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 728static bool INumberBase<nuint>.IsPositive(nuint value) => true; 730/// <inheritdoc cref="INumberBase{TSelf}.IsPositiveInfinity(TSelf)" /> 731static bool INumberBase<nuint>.IsPositiveInfinity(nuint value) => false; 733/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 734static bool INumberBase<nuint>.IsRealNumber(nuint value) => true; 736/// <inheritdoc cref="INumberBase{TSelf}.IsSubnormal(TSelf)" /> 737static bool INumberBase<nuint>.IsSubnormal(nuint value) => false; 739/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 740static bool INumberBase<nuint>.IsZero(nuint value) => (value == 0); 742/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 743static nuint INumberBase<nuint>.MaxMagnitude(nuint x, nuint y) => Max(x, y); 745/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 746static nuint INumberBase<nuint>.MaxMagnitudeNumber(nuint x, nuint y) => Max(x, y); 748/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 749static nuint INumberBase<nuint>.MinMagnitude(nuint x, nuint y) => Min(x, y); 751/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 752static nuint INumberBase<nuint>.MinMagnitudeNumber(nuint x, nuint y) => Min(x, y); 754/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 755static nuint INumberBase<nuint>.MultiplyAddEstimate(nuint left, nuint right, nuint addend) => (nuint)((left * right) + addend); 757/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 759static bool INumberBase<nuint>.TryConvertFromChecked<TOther>(TOther value, out nuint result) => TryConvertFromChecked(value, out result); 763where TOther : INumberBase<TOther> 823/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 825static bool INumberBase<nuint>.TryConvertFromSaturating<TOther>(TOther value, out nuint result) => TryConvertFromSaturating(value, out result); 829where TOther : INumberBase<TOther> 890/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 892static bool INumberBase<nuint>.TryConvertFromTruncating<TOther>(TOther value, out nuint result) => TryConvertFromTruncating(value, out result); 896where TOther : INumberBase<TOther> 957/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 959static bool INumberBase<nuint>.TryConvertToChecked<TOther>(nuint value, [MaybeNullWhen(false)] out TOther result) 1031/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 1033static bool INumberBase<nuint>.TryConvertToSaturating<TOther>(nuint value, [MaybeNullWhen(false)] out TOther result) 1105/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 1107static bool INumberBase<nuint>.TryConvertToTruncating<TOther>(nuint value, [MaybeNullWhen(false)] out TOther result) 1223/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1226/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net11.0\System.Runtime.Forwards.cs (1)
397[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.INumberBase<>))]
System.Runtime.Numerics (118)
System\Numerics\BigInteger.cs (61)
3813/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 3814static int INumberBase<BigInteger>.Radix => 2; 3816/// <inheritdoc cref="INumberBase{TSelf}.CreateChecked{TOther}(TOther)" /> 3819where TOther : INumberBase<TOther> 3835/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" /> 3838where TOther : INumberBase<TOther> 3854/// <inheritdoc cref="INumberBase{TSelf}.CreateTruncating{TOther}(TOther)" /> 3857where TOther : INumberBase<TOther> 3873/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 3874static bool INumberBase<BigInteger>.IsCanonical(BigInteger value) => true; 3876/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 3877static bool INumberBase<BigInteger>.IsComplexNumber(BigInteger value) => false; 3879/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 3891/// <inheritdoc cref="INumberBase{TSelf}.IsFinite(TSelf)" /> 3892static bool INumberBase<BigInteger>.IsFinite(BigInteger value) => true; 3894/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 3895static bool INumberBase<BigInteger>.IsImaginaryNumber(BigInteger value) => false; 3897/// <inheritdoc cref="INumberBase{TSelf}.IsInfinity(TSelf)" /> 3898static bool INumberBase<BigInteger>.IsInfinity(BigInteger value) => false; 3900/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 3901static bool INumberBase<BigInteger>.IsInteger(BigInteger value) => true; 3903/// <inheritdoc cref="INumberBase{TSelf}.IsNaN(TSelf)" /> 3904static bool INumberBase<BigInteger>.IsNaN(BigInteger value) => false; 3906/// <inheritdoc cref="INumberBase{TSelf}.IsNegative(TSelf)" /> 3913/// <inheritdoc cref="INumberBase{TSelf}.IsNegativeInfinity(TSelf)" /> 3914static bool INumberBase<BigInteger>.IsNegativeInfinity(BigInteger value) => false; 3916/// <inheritdoc cref="INumberBase{TSelf}.IsNormal(TSelf)" /> 3917static bool INumberBase<BigInteger>.IsNormal(BigInteger value) => (value != 0); 3919/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 3931/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 3938/// <inheritdoc cref="INumberBase{TSelf}.IsPositiveInfinity(TSelf)" /> 3939static bool INumberBase<BigInteger>.IsPositiveInfinity(BigInteger value) => false; 3941/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 3942static bool INumberBase<BigInteger>.IsRealNumber(BigInteger value) => true; 3944/// <inheritdoc cref="INumberBase{TSelf}.IsSubnormal(TSelf)" /> 3945static bool INumberBase<BigInteger>.IsSubnormal(BigInteger value) => false; 3947/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 3948static bool INumberBase<BigInteger>.IsZero(BigInteger value) 3954/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 3964/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 3965static BigInteger INumberBase<BigInteger>.MaxMagnitudeNumber(BigInteger x, BigInteger y) => MaxMagnitude(x, y); 3967/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 3977/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 3978static BigInteger INumberBase<BigInteger>.MinMagnitudeNumber(BigInteger x, BigInteger y) => MinMagnitude(x, y); 3980/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 3981static BigInteger INumberBase<BigInteger>.MultiplyAddEstimate(BigInteger left, BigInteger right, BigInteger addend) => (left * right) + addend; 3983/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 3985static bool INumberBase<BigInteger>.TryConvertFromChecked<TOther>(TOther value, out BigInteger result) => TryConvertFromChecked(value, out result); 3989where TOther : INumberBase<TOther> 4106/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 4108static bool INumberBase<BigInteger>.TryConvertFromSaturating<TOther>(TOther value, out BigInteger result) => TryConvertFromSaturating(value, out result); 4112where TOther : INumberBase<TOther> 4229/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 4231static bool INumberBase<BigInteger>.TryConvertFromTruncating<TOther>(TOther value, out BigInteger result) => TryConvertFromTruncating(value, out result); 4235where TOther : INumberBase<TOther> 4352/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 4354static bool INumberBase<BigInteger>.TryConvertToChecked<TOther>(BigInteger value, [MaybeNullWhen(false)] out TOther result) 4477/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 4479static bool INumberBase<BigInteger>.TryConvertToSaturating<TOther>(BigInteger value, [MaybeNullWhen(false)] out TOther result) 4676/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 4678static bool INumberBase<BigInteger>.TryConvertToTruncating<TOther>(BigInteger value, [MaybeNullWhen(false)] out TOther result)
System\Numerics\Complex.cs (57)
938/// <inheritdoc cref="INumberBase{TSelf}.One" /> 939static Complex INumberBase<Complex>.One => new Complex(1.0, 0.0); 941/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 942static int INumberBase<Complex>.Radix => 2; 944/// <inheritdoc cref="INumberBase{TSelf}.Zero" /> 945static Complex INumberBase<Complex>.Zero => new Complex(0.0, 0.0); 947/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" /> 948static Complex INumberBase<Complex>.Abs(Complex value) => Abs(value); 950/// <inheritdoc cref="INumberBase{TSelf}.CreateChecked{TOther}(TOther)" /> 953where TOther : INumberBase<TOther> 969/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" /> 972where TOther : INumberBase<TOther> 988/// <inheritdoc cref="INumberBase{TSelf}.CreateTruncating{TOther}(TOther)" /> 991where TOther : INumberBase<TOther> 1007/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 1008static bool INumberBase<Complex>.IsCanonical(Complex value) => true; 1010/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 1013/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 1016/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 1019/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 1022/// <inheritdoc cref="INumberBase{TSelf}.IsNegative(TSelf)" /> 1031/// <inheritdoc cref="INumberBase{TSelf}.IsNegativeInfinity(TSelf)" /> 1040/// <inheritdoc cref="INumberBase{TSelf}.IsNormal(TSelf)" /> 1050/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 1053/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 1062/// <inheritdoc cref="INumberBase{TSelf}.IsPositiveInfinity(TSelf)" /> 1071/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 1074/// <inheritdoc cref="INumberBase{TSelf}.IsSubnormal(TSelf)" /> 1083/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 1084static bool INumberBase<Complex>.IsZero(Complex value) => (value.m_real == 0.0) && (value.m_imaginary == 0.0); 1086/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 1176/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 1177static Complex INumberBase<Complex>.MaxMagnitudeNumber(Complex x, Complex y) 1266/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 1358/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 1359static Complex INumberBase<Complex>.MinMagnitudeNumber(Complex x, Complex y) 1450/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 1451static Complex INumberBase<Complex>.MultiplyAddEstimate(Complex left, Complex right, Complex addend) 1467/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{char}, NumberStyles, IFormatProvider?)" /> 1477/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1487/// <inheritdoc cref="INumberBase{TSelf}.Parse(string, NumberStyles, IFormatProvider?)" /> 1494/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 1496static bool INumberBase<Complex>.TryConvertFromChecked<TOther>(TOther value, out Complex result) 1501/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 1503static bool INumberBase<Complex>.TryConvertFromSaturating<TOther>(TOther value, out Complex result) 1508/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 1510static bool INumberBase<Complex>.TryConvertFromTruncating<TOther>(TOther value, out Complex result) 1516where TOther : INumberBase<TOther> 1636/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 1638static bool INumberBase<Complex>.TryConvertToChecked<TOther>(Complex value, [MaybeNullWhen(false)] out TOther result) 1841/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 1843static bool INumberBase<Complex>.TryConvertToSaturating<TOther>(Complex value, [MaybeNullWhen(false)] out TOther result) 1991/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 1993static bool INumberBase<Complex>.TryConvertToTruncating<TOther>(Complex value, [MaybeNullWhen(false)] out TOther result) 2133/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{char}, NumberStyles, IFormatProvider?, out TSelf)" /> 2137/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 2230/// <inheritdoc cref="INumberBase{TSelf}.TryParse(string, NumberStyles, IFormatProvider?, out TSelf)" />