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)
21INumberBase<Complex>,
1435 references to INumberBase
System.Net.Http (1)
System\Net\Http\Headers\KnownHeaders.cs (1)
126where T : struct, INumberBase<T>
System.Numerics.Tensors (135)
System\Numerics\Tensors\netcore\Tensor.cs (17)
2547where T : INumberBase<T> 2560where T : INumberBase<T> 3040where T : INumberBase<T> 3223where TFrom : IEquatable<TFrom>, IEqualityOperators<TFrom, TFrom, bool>, INumberBase<TFrom> 3224where TTo : INumberBase<TTo> 3238where TFrom : IEquatable<TFrom>, IEqualityOperators<TFrom, TFrom, bool>, INumberBase<TFrom> 3239where TTo : INumberBase<TTo> 3254where TFrom : IEquatable<TFrom>, IEqualityOperators<TFrom, TFrom, bool>, INumberBase<TFrom> 3255where TTo : INumberBase<TTo> 3269where TFrom : IEquatable<TFrom>, IEqualityOperators<TFrom, TFrom, bool>, INumberBase<TFrom> 3270where TTo : INumberBase<TTo> 3285where TFrom : IEquatable<TFrom>, IEqualityOperators<TFrom, TFrom, bool>, INumberBase<TFrom> 3286where TTo : INumberBase<TTo> 3300where TFrom : IEquatable<TFrom>, IEqualityOperators<TFrom, TFrom, bool>, INumberBase<TFrom> 3301where TTo : INumberBase<TTo> 4334where T : INumberBase<T> 4586where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorOperation.cs (9)
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> 1394where T : INumberBase<T> 1542where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Abs.cs (2)
30where T : INumberBase<T> => 34internal readonly struct AbsoluteOperator<T> : IUnaryOperator<T, T> where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Average.cs (1)
21where 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)
16where TFrom : INumberBase<TFrom> 17where 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> 214private readonly struct ConvertTruncatingFallbackOperator<TFrom, TTo> : IUnaryOperator<TFrom, TTo> where TFrom : INumberBase<TFrom> where TTo : INumberBase<TTo>
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMax.cs (1)
467private static bool IsNegative<T>(T f) where T : INumberBase<T> => T.IsNegative(f);
System\Numerics\Tensors\netcore\TensorPrimitives.IsCanonical.cs (4)
23where T : INumberBase<T> 46where T : INumberBase<T> => 57where T : INumberBase<T> => 68where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsComplexNumber.cs (4)
23where T : INumberBase<T> 46where T : INumberBase<T> => 57where T : INumberBase<T> => 69where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsEvenInteger.cs (4)
24where T : INumberBase<T> => 34where T : INumberBase<T> => 45where T : INumberBase<T> => 51where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsFinite.cs (4)
23where T : INumberBase<T> 46where T : INumberBase<T> => 57where T : INumberBase<T> => 68where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsImaginaryNumber.cs (4)
23where T : INumberBase<T> 46where T : INumberBase<T> => 57where T : INumberBase<T> => 69where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsInfinity.cs (4)
23where T : INumberBase<T> => 33where T : INumberBase<T> => 44where T : INumberBase<T> => 55where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsInteger.cs (4)
22where T : INumberBase<T> 45where T : INumberBase<T> => 56where T : INumberBase<T> => 66where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsNaN.cs (4)
23where T : INumberBase<T> 46where T : INumberBase<T> => 57where T : INumberBase<T> => 68where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsNegative.cs (4)
22where T : INumberBase<T> 45where T : INumberBase<T> => 56where T : INumberBase<T> => 71where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsNegativeInfinity.cs (4)
23where T : INumberBase<T> => 33where T : INumberBase<T> => 44where T : INumberBase<T> => 55where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsNormal.cs (4)
22where T : INumberBase<T> => 32where T : INumberBase<T> => 43where T : INumberBase<T> => 49where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsOddInteger.cs (4)
24where T : INumberBase<T> => 34where T : INumberBase<T> => 45where T : INumberBase<T> => 51where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsPositive.cs (4)
22where T : INumberBase<T> => 32where T : INumberBase<T> => 43where T : INumberBase<T> => 49where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsPositiveInfinity.cs (4)
23where T : INumberBase<T> => 33where T : INumberBase<T> => 44where T : INumberBase<T> => 55where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsRealNumber.cs (4)
23where T : INumberBase<T> 46where T : INumberBase<T> => 57where T : INumberBase<T> => 68where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsSubnormal.cs (4)
23where T : INumberBase<T> => 33where T : INumberBase<T> => 44where T : INumberBase<T> => 55where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IsZero.cs (4)
22where T : INumberBase<T> => 32where T : INumberBase<T> => 43where T : INumberBase<T> => 49where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Max.cs (1)
375where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.MaxMagnitude.cs (4)
27where T : INumberBase<T> => 46where T : INumberBase<T> => 63where T : INumberBase<T> => 68where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.MaxMagnitudeNumber.cs (4)
28where T : INumberBase<T> => 54where T : INumberBase<T> => 78where T : INumberBase<T> => 83where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.MinMagnitude.cs (4)
27where T : INumberBase<T> => 51where T : INumberBase<T> => 73where T : INumberBase<T> => 78where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.MinMagnitudeNumber.cs (4)
28where T : INumberBase<T> => 54where T : INumberBase<T> => 78where T : INumberBase<T> => 83where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.MultiplyAddEstimate.cs (4)
37where T : INumberBase<T> => 63where T : INumberBase<T> => 88where T : INumberBase<T> => 93where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.StdDev.cs (1)
36where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Sum.cs (1)
46where T : INumberBase<T> =>
System.Private.CoreLib (1182)
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)
1427/// <inheritdoc cref="INumberBase{TSelf}.One" /> 1428static char INumberBase<char>.One => (char)1; 1430/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 1431static int INumberBase<char>.Radix => 2; 1433/// <inheritdoc cref="INumberBase{TSelf}.Zero" /> 1434static char INumberBase<char>.Zero => (char)0; 1436/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" /> 1437static char INumberBase<char>.Abs(char value) => value; 1439/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 1440static bool INumberBase<char>.IsCanonical(char value) => true; 1442/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 1443static bool INumberBase<char>.IsComplexNumber(char value) => false; 1445/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 1446static bool INumberBase<char>.IsEvenInteger(char value) => (value & 1) == 0; 1448/// <inheritdoc cref="INumberBase{TSelf}.IsFinite(TSelf)" /> 1449static bool INumberBase<char>.IsFinite(char value) => true; 1451/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 1452static bool INumberBase<char>.IsImaginaryNumber(char value) => false; 1454/// <inheritdoc cref="INumberBase{TSelf}.IsInfinity(TSelf)" /> 1455static bool INumberBase<char>.IsInfinity(char value) => false; 1457/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 1458static bool INumberBase<char>.IsInteger(char value) => true; 1460/// <inheritdoc cref="INumberBase{TSelf}.IsNaN(TSelf)" /> 1461static bool INumberBase<char>.IsNaN(char value) => false; 1463/// <inheritdoc cref="INumberBase{TSelf}.IsNegative(TSelf)" /> 1464static bool INumberBase<char>.IsNegative(char value) => false; 1466/// <inheritdoc cref="INumberBase{TSelf}.IsNegativeInfinity(TSelf)" /> 1467static bool INumberBase<char>.IsNegativeInfinity(char value) => false; 1469/// <inheritdoc cref="INumberBase{TSelf}.IsNormal(TSelf)" /> 1470static bool INumberBase<char>.IsNormal(char value) => value != 0; 1472/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 1473static bool INumberBase<char>.IsOddInteger(char value) => (value & 1) != 0; 1475/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 1476static bool INumberBase<char>.IsPositive(char value) => true; 1478/// <inheritdoc cref="INumberBase{TSelf}.IsPositiveInfinity(TSelf)" /> 1479static bool INumberBase<char>.IsPositiveInfinity(char value) => false; 1481/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 1482static bool INumberBase<char>.IsRealNumber(char value) => true; 1484/// <inheritdoc cref="INumberBase{TSelf}.IsSubnormal(TSelf)" /> 1485static bool INumberBase<char>.IsSubnormal(char value) => false; 1487/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 1488static bool INumberBase<char>.IsZero(char value) => (value == 0); 1490/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 1491static char INumberBase<char>.MaxMagnitude(char x, char y) => (char)Math.Max(x, y); 1493/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 1494static char INumberBase<char>.MaxMagnitudeNumber(char x, char y) => (char)Math.Max(x, y); 1496/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 1497static char INumberBase<char>.MinMagnitude(char x, char y) => (char)Math.Min(x, y); 1499/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 1500static char INumberBase<char>.MinMagnitudeNumber(char x, char y) => (char)Math.Min(x, y); 1502/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 1503static char INumberBase<char>.MultiplyAddEstimate(char left, char right, char addend) => (char)((left * right) + addend); 1505static char INumberBase<char>.Parse(string s, NumberStyles style, IFormatProvider? provider) => Parse(s); 1507static char INumberBase<char>.Parse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider) => Parse(s); 1509/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 1511static bool INumberBase<char>.TryConvertFromChecked<TOther>(TOther value, out char result) 1571/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 1573static bool INumberBase<char>.TryConvertFromSaturating<TOther>(TOther value, out char result) 1634/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 1636static bool INumberBase<char>.TryConvertFromTruncating<TOther>(TOther value, out char result) 1697/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 1699static bool INumberBase<char>.TryConvertToChecked<TOther>(char value, [MaybeNullWhen(false)] out TOther result) 1771/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 1773static bool INumberBase<char>.TryConvertToSaturating<TOther>(char value, [MaybeNullWhen(false)] out TOther result) 1845/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 1847static bool INumberBase<char>.TryConvertToTruncating<TOther>(char value, [MaybeNullWhen(false)] out TOther result) 1919static bool INumberBase<char>.TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out char result) => TryParse(s, out result); 1921static 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)
1298/// <inheritdoc cref="INumberBase{TSelf}.One" /> 1299static decimal INumberBase<decimal>.One => One; 1301/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 1302static int INumberBase<decimal>.Radix => 10; 1304/// <inheritdoc cref="INumberBase{TSelf}.Zero" /> 1305static decimal INumberBase<decimal>.Zero => Zero; 1307/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" /> 1313/// <inheritdoc cref="INumberBase{TSelf}.CreateChecked{TOther}(TOther)" /> 1316where TOther : INumberBase<TOther> 1332/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" /> 1335where TOther : INumberBase<TOther> 1351/// <inheritdoc cref="INumberBase{TSelf}.CreateTruncating{TOther}(TOther)" /> 1354where TOther : INumberBase<TOther> 1370/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 1393/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 1394static bool INumberBase<decimal>.IsComplexNumber(decimal value) => false; 1396/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 1403/// <inheritdoc cref="INumberBase{TSelf}.IsFinite(TSelf)" /> 1404static bool INumberBase<decimal>.IsFinite(decimal value) => true; 1406/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 1407static bool INumberBase<decimal>.IsImaginaryNumber(decimal value) => false; 1409/// <inheritdoc cref="INumberBase{TSelf}.IsInfinity(TSelf)" /> 1410static bool INumberBase<decimal>.IsInfinity(decimal value) => false; 1412/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 1415/// <inheritdoc cref="INumberBase{TSelf}.IsNaN(TSelf)" /> 1416static bool INumberBase<decimal>.IsNaN(decimal value) => false; 1418/// <inheritdoc cref="INumberBase{TSelf}.IsNegative(TSelf)" /> 1421/// <inheritdoc cref="INumberBase{TSelf}.IsNegativeInfinity(TSelf)" /> 1422static bool INumberBase<decimal>.IsNegativeInfinity(decimal value) => false; 1424/// <inheritdoc cref="INumberBase{TSelf}.IsNormal(TSelf)" /> 1425static bool INumberBase<decimal>.IsNormal(decimal value) => value != 0; 1427/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 1434/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 1437/// <inheritdoc cref="INumberBase{TSelf}.IsPositiveInfinity(TSelf)" /> 1438static bool INumberBase<decimal>.IsPositiveInfinity(decimal value) => false; 1440/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 1441static bool INumberBase<decimal>.IsRealNumber(decimal value) => true; 1443/// <inheritdoc cref="INumberBase{TSelf}.IsSubnormal(TSelf)" /> 1444static bool INumberBase<decimal>.IsSubnormal(decimal value) => false; 1446/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 1447static bool INumberBase<decimal>.IsZero(decimal value) => (value == 0); 1449/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 1468/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 1469static decimal INumberBase<decimal>.MaxMagnitudeNumber(decimal x, decimal y) => MaxMagnitude(x, y); 1471/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 1490/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 1491static decimal INumberBase<decimal>.MinMagnitudeNumber(decimal x, decimal y) => MinMagnitude(x, y); 1493/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 1494static decimal INumberBase<decimal>.MultiplyAddEstimate(decimal left, decimal right, decimal addend) => (left * right) + addend; 1496/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 1498static bool INumberBase<decimal>.TryConvertFromChecked<TOther>(TOther value, out decimal result) => TryConvertFromChecked(value, out result); 1502where TOther : INumberBase<TOther> 1562/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 1564static bool INumberBase<decimal>.TryConvertFromSaturating<TOther>(TOther value, out decimal result) 1569/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 1571static bool INumberBase<decimal>.TryConvertFromTruncating<TOther>(TOther value, out decimal result) 1578where TOther : INumberBase<TOther> 1638/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 1640static bool INumberBase<decimal>.TryConvertToChecked<TOther>(decimal value, [MaybeNullWhen(false)] out TOther result) 1712/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 1714static bool INumberBase<decimal>.TryConvertToSaturating<TOther>(decimal value, [MaybeNullWhen(false)] out TOther result) 1719/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 1721static bool INumberBase<decimal>.TryConvertToTruncating<TOther>(decimal value, [MaybeNullWhen(false)] out TOther result) 1728where TOther : INumberBase<TOther> 1833/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1840/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Double.cs (47)
1032/// <inheritdoc cref="INumberBase{TSelf}.One" /> 1033static double INumberBase<double>.One => One; 1035/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 1036static int INumberBase<double>.Radix => 2; 1038/// <inheritdoc cref="INumberBase{TSelf}.Zero" /> 1039static double INumberBase<double>.Zero => Zero; 1041/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" /> 1045/// <inheritdoc cref="INumberBase{TSelf}.CreateChecked{TOther}(TOther)" /> 1048where TOther : INumberBase<TOther> 1064/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" /> 1067where TOther : INumberBase<TOther> 1083/// <inheritdoc cref="INumberBase{TSelf}.CreateTruncating{TOther}(TOther)" /> 1086where TOther : INumberBase<TOther> 1102/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 1103static bool INumberBase<double>.IsCanonical(double value) => true; 1105/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 1106static bool INumberBase<double>.IsComplexNumber(double value) => false; 1108/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 1111/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 1112static bool INumberBase<double>.IsImaginaryNumber(double value) => false; 1114/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 1117/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 1120/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 1123/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 1134/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 1135static bool INumberBase<double>.IsZero(double value) => IsZero(value); 1137/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 1141/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 1167/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 1171/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 1197/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 1208/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 1210static bool INumberBase<double>.TryConvertFromChecked<TOther>(TOther value, out double result) 1215/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 1217static bool INumberBase<double>.TryConvertFromSaturating<TOther>(TOther value, out double result) 1222/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 1224static bool INumberBase<double>.TryConvertFromTruncating<TOther>(TOther value, out double result) 1231where TOther : INumberBase<TOther> 1297/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 1299static bool INumberBase<double>.TryConvertToChecked<TOther>(double value, [MaybeNullWhen(false)] out TOther result) 1365/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 1367static bool INumberBase<double>.TryConvertToSaturating<TOther>(double value, [MaybeNullWhen(false)] out TOther result) 1372/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 1374static bool INumberBase<double>.TryConvertToTruncating<TOther>(double value, [MaybeNullWhen(false)] out TOther result) 1381where TOther : INumberBase<TOther> 2258/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 2265/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Half.cs (45)
1747/// <inheritdoc cref="INumberBase{TSelf}.One" /> 1750/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 1751static int INumberBase<Half>.Radix => 2; 1753/// <inheritdoc cref="INumberBase{TSelf}.Zero" /> 1756/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" /> 1759/// <inheritdoc cref="INumberBase{TSelf}.CreateChecked{TOther}(TOther)" /> 1762where TOther : INumberBase<TOther> 1778/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" /> 1781where TOther : INumberBase<TOther> 1797/// <inheritdoc cref="INumberBase{TSelf}.CreateTruncating{TOther}(TOther)" /> 1800where TOther : INumberBase<TOther> 1816/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 1817static bool INumberBase<Half>.IsCanonical(Half value) => true; 1819/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 1820static bool INumberBase<Half>.IsComplexNumber(Half value) => false; 1822/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 1825/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 1826static bool INumberBase<Half>.IsImaginaryNumber(Half value) => false; 1828/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 1831/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 1834/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 1837/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 1848/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 1849static bool INumberBase<Half>.IsZero(Half value) => IsZero(value); 1851/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 1854/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 1879/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 1882/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 1907/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 1910/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 1912static bool INumberBase<Half>.TryConvertFromChecked<TOther>(TOther value, out Half result) 1917/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 1919static bool INumberBase<Half>.TryConvertFromSaturating<TOther>(TOther value, out Half result) 1924/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 1926static bool INumberBase<Half>.TryConvertFromTruncating<TOther>(TOther value, out Half result) 1933where TOther : INumberBase<TOther> 1999/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 2001static bool INumberBase<Half>.TryConvertToChecked<TOther>(Half value, [MaybeNullWhen(false)] out TOther result) 2067/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 2069static bool INumberBase<Half>.TryConvertToSaturating<TOther>(Half value, [MaybeNullWhen(false)] out TOther result) 2074/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 2076static bool INumberBase<Half>.TryConvertToTruncating<TOther>(Half value, [MaybeNullWhen(false)] out TOther result) 2083where TOther : INumberBase<TOther> 2303/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 2310/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int128.cs (66)
1274/// <inheritdoc cref="INumberBase{TSelf}.One" /> 1277/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 1278static int INumberBase<Int128>.Radix => 2; 1280/// <inheritdoc cref="INumberBase{TSelf}.Zero" /> 1283/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" /> 1298/// <inheritdoc cref="INumberBase{TSelf}.CreateChecked{TOther}(TOther)" /> 1301where TOther : INumberBase<TOther> 1317/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" /> 1320where TOther : INumberBase<TOther> 1336/// <inheritdoc cref="INumberBase{TSelf}.CreateTruncating{TOther}(TOther)" /> 1339where TOther : INumberBase<TOther> 1355/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 1356static bool INumberBase<Int128>.IsCanonical(Int128 value) => true; 1358/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 1359static bool INumberBase<Int128>.IsComplexNumber(Int128 value) => false; 1361/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 1364/// <inheritdoc cref="INumberBase{TSelf}.IsFinite(TSelf)" /> 1365static bool INumberBase<Int128>.IsFinite(Int128 value) => true; 1367/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 1368static bool INumberBase<Int128>.IsImaginaryNumber(Int128 value) => false; 1370/// <inheritdoc cref="INumberBase{TSelf}.IsInfinity(TSelf)" /> 1371static bool INumberBase<Int128>.IsInfinity(Int128 value) => false; 1373/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 1374static bool INumberBase<Int128>.IsInteger(Int128 value) => true; 1376/// <inheritdoc cref="INumberBase{TSelf}.IsNaN(TSelf)" /> 1377static bool INumberBase<Int128>.IsNaN(Int128 value) => false; 1379/// <inheritdoc cref="INumberBase{TSelf}.IsNegative(TSelf)" /> 1382/// <inheritdoc cref="INumberBase{TSelf}.IsNegativeInfinity(TSelf)" /> 1383static bool INumberBase<Int128>.IsNegativeInfinity(Int128 value) => false; 1385/// <inheritdoc cref="INumberBase{TSelf}.IsNormal(TSelf)" /> 1386static bool INumberBase<Int128>.IsNormal(Int128 value) => value != 0; 1388/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 1391/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 1394/// <inheritdoc cref="INumberBase{TSelf}.IsPositiveInfinity(TSelf)" /> 1395static bool INumberBase<Int128>.IsPositiveInfinity(Int128 value) => false; 1397/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 1398static bool INumberBase<Int128>.IsRealNumber(Int128 value) => true; 1400/// <inheritdoc cref="INumberBase{TSelf}.IsSubnormal(TSelf)" /> 1401static bool INumberBase<Int128>.IsSubnormal(Int128 value) => false; 1403/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 1404static bool INumberBase<Int128>.IsZero(Int128 value) => (value == 0); 1406/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 1446/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 1447static Int128 INumberBase<Int128>.MaxMagnitudeNumber(Int128 x, Int128 y) => MaxMagnitude(x, y); 1449/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 1489/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 1490static Int128 INumberBase<Int128>.MinMagnitudeNumber(Int128 x, Int128 y) => MinMagnitude(x, y); 1492/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 1493static Int128 INumberBase<Int128>.MultiplyAddEstimate(Int128 left, Int128 right, Int128 addend) => (left * right) + addend; 1495/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 1497static bool INumberBase<Int128>.TryConvertFromChecked<TOther>(TOther value, out Int128 result) => TryConvertFromChecked(value, out result); 1501where TOther : INumberBase<TOther> 1567/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 1569static bool INumberBase<Int128>.TryConvertFromSaturating<TOther>(TOther value, out Int128 result) => TryConvertFromSaturating(value, out result); 1573where TOther : INumberBase<TOther> 1642/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 1644static bool INumberBase<Int128>.TryConvertFromTruncating<TOther>(TOther value, out Int128 result) => TryConvertFromTruncating(value, out result); 1648where TOther : INumberBase<TOther> 1717/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 1719static bool INumberBase<Int128>.TryConvertToChecked<TOther>(Int128 value, [MaybeNullWhen(false)] out TOther result) 1785/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 1787static bool INumberBase<Int128>.TryConvertToSaturating<TOther>(Int128 value, [MaybeNullWhen(false)] out TOther result) 1860/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 1862static bool INumberBase<Int128>.TryConvertToTruncating<TOther>(Int128 value, [MaybeNullWhen(false)] out TOther result) 2117/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 2124/// <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> 1063/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 1065static bool INumberBase<int>.TryConvertFromTruncating<TOther>(TOther value, out int result) => TryConvertFromTruncating(value, out result); 1069where TOther : INumberBase<TOther> 1138/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 1140static bool INumberBase<int>.TryConvertToChecked<TOther>(int value, [MaybeNullWhen(false)] out TOther result) 1206/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 1208static bool INumberBase<int>.TryConvertToSaturating<TOther>(int value, [MaybeNullWhen(false)] out TOther result) 1277/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 1279static bool INumberBase<int>.TryConvertToTruncating<TOther>(int value, [MaybeNullWhen(false)] out TOther result) 1413/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1420/// <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> 1058/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 1060static bool INumberBase<long>.TryConvertFromTruncating<TOther>(TOther value, out long result) => TryConvertFromTruncating(value, out result); 1064where TOther : INumberBase<TOther> 1133/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 1135static bool INumberBase<long>.TryConvertToChecked<TOther>(long value, [MaybeNullWhen(false)] out TOther result) 1201/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 1203static bool INumberBase<long>.TryConvertToSaturating<TOther>(long value, [MaybeNullWhen(false)] out TOther result) 1280/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 1282static bool INumberBase<long>.TryConvertToTruncating<TOther>(long value, [MaybeNullWhen(false)] out TOther result) 1416/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1423/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (68)
696/// <inheritdoc cref="INumberBase{TSelf}.One" /> 697static nint INumberBase<nint>.One => 1; 699/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 700static int INumberBase<nint>.Radix => 2; 702/// <inheritdoc cref="INumberBase{TSelf}.Zero" /> 703static nint INumberBase<nint>.Zero => 0; 705/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" /> 708/// <inheritdoc cref="INumberBase{TSelf}.CreateChecked{TOther}(TOther)" /> 711where TOther : INumberBase<TOther> 727/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" /> 730where TOther : INumberBase<TOther> 746/// <inheritdoc cref="INumberBase{TSelf}.CreateTruncating{TOther}(TOther)" /> 749where TOther : INumberBase<TOther> 765/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 766static bool INumberBase<nint>.IsCanonical(nint value) => true; 768/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 769static bool INumberBase<nint>.IsComplexNumber(nint value) => false; 771/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 774/// <inheritdoc cref="INumberBase{TSelf}.IsFinite(TSelf)" /> 775static bool INumberBase<nint>.IsFinite(nint value) => true; 777/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 778static bool INumberBase<nint>.IsImaginaryNumber(nint value) => false; 780/// <inheritdoc cref="INumberBase{TSelf}.IsInfinity(TSelf)" /> 781static bool INumberBase<nint>.IsInfinity(nint value) => false; 783/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 784static bool INumberBase<nint>.IsInteger(nint value) => true; 786/// <inheritdoc cref="INumberBase{TSelf}.IsNaN(TSelf)" /> 787static bool INumberBase<nint>.IsNaN(nint value) => false; 789/// <inheritdoc cref="INumberBase{TSelf}.IsNegative(TSelf)" /> 792/// <inheritdoc cref="INumberBase{TSelf}.IsNegativeInfinity(TSelf)" /> 793static bool INumberBase<nint>.IsNegativeInfinity(nint value) => false; 795/// <inheritdoc cref="INumberBase{TSelf}.IsNormal(TSelf)" /> 796static bool INumberBase<nint>.IsNormal(nint value) => value != 0; 798/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 801/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 804/// <inheritdoc cref="INumberBase{TSelf}.IsPositiveInfinity(TSelf)" /> 805static bool INumberBase<nint>.IsPositiveInfinity(nint value) => false; 807/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 808static bool INumberBase<nint>.IsRealNumber(nint value) => true; 810/// <inheritdoc cref="INumberBase{TSelf}.IsSubnormal(TSelf)" /> 811static bool INumberBase<nint>.IsSubnormal(nint value) => false; 813/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 814static bool INumberBase<nint>.IsZero(nint value) => (value == 0); 816/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 856/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 857static nint INumberBase<nint>.MaxMagnitudeNumber(nint x, nint y) => MaxMagnitude(x, y); 859/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 899/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 900static nint INumberBase<nint>.MinMagnitudeNumber(nint x, nint y) => MinMagnitude(x, y); 902/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 903static nint INumberBase<nint>.MultiplyAddEstimate(nint left, nint right, nint addend) => (left * right) + addend; 905/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 907static bool INumberBase<nint>.TryConvertFromChecked<TOther>(TOther value, out nint result) => TryConvertFromChecked(value, out result); 911where TOther : INumberBase<TOther> 977/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 979static bool INumberBase<nint>.TryConvertFromSaturating<TOther>(TOther value, out nint result) => TryConvertFromSaturating(value, out result); 983where TOther : INumberBase<TOther> 1054/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 1056static bool INumberBase<nint>.TryConvertFromTruncating<TOther>(TOther value, out nint result) => TryConvertFromTruncating(value, out result); 1060where TOther : INumberBase<TOther> 1129/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 1131static bool INumberBase<nint>.TryConvertToChecked<TOther>(nint value, [MaybeNullWhen(false)] out TOther result) 1197/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 1199static bool INumberBase<nint>.TryConvertToSaturating<TOther>(nint value, [MaybeNullWhen(false)] out TOther result) 1269/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 1271static bool INumberBase<nint>.TryConvertToTruncating<TOther>(nint value, [MaybeNullWhen(false)] out TOther result) 1388/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1391/// <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)
1029/// <inheritdoc cref="INumberBase{TSelf}.One" /> 1030static float INumberBase<float>.One => One; 1032/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 1033static int INumberBase<float>.Radix => 2; 1035/// <inheritdoc cref="INumberBase{TSelf}.Zero" /> 1036static float INumberBase<float>.Zero => Zero; 1038/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" /> 1042/// <inheritdoc cref="INumberBase{TSelf}.CreateChecked{TOther}(TOther)" /> 1045where TOther : INumberBase<TOther> 1061/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" /> 1064where TOther : INumberBase<TOther> 1080/// <inheritdoc cref="INumberBase{TSelf}.CreateTruncating{TOther}(TOther)" /> 1083where TOther : INumberBase<TOther> 1099/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 1100static bool INumberBase<float>.IsCanonical(float value) => true; 1102/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 1103static bool INumberBase<float>.IsComplexNumber(float value) => false; 1105/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 1128/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 1129static bool INumberBase<float>.IsImaginaryNumber(float value) => false; 1131/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 1134/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 1137/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 1140/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 1151/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 1152static bool INumberBase<float>.IsZero(float value) => IsZero(value); 1154/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 1158/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 1184/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 1188/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 1216/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 1227/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 1229static bool INumberBase<float>.TryConvertFromChecked<TOther>(TOther value, out float result) 1234/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 1236static bool INumberBase<float>.TryConvertFromSaturating<TOther>(TOther value, out float result) 1241/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 1243static bool INumberBase<float>.TryConvertFromTruncating<TOther>(TOther value, out float result) 1250where TOther : INumberBase<TOther> 1316/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 1318static bool INumberBase<float>.TryConvertToChecked<TOther>(float value, [MaybeNullWhen(false)] out TOther result) 1384/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 1386static bool INumberBase<float>.TryConvertToSaturating<TOther>(float value, [MaybeNullWhen(false)] out TOther result) 1391/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 1393static bool INumberBase<float>.TryConvertToTruncating<TOther>(float value, [MaybeNullWhen(false)] out TOther result) 1400where TOther : INumberBase<TOther> 2174/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 2181/// <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> 469private readonly struct PlainLoader<T> : ILoader<T, T> where T : unmanaged, INumberBase<T>
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (71)
1436/// <inheritdoc cref="INumberBase{TSelf}.One" /> 1439/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 1440static int INumberBase<UInt128>.Radix => 2; 1442/// <inheritdoc cref="INumberBase{TSelf}.Zero" /> 1445/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" /> 1446static UInt128 INumberBase<UInt128>.Abs(UInt128 value) => value; 1448/// <inheritdoc cref="INumberBase{TSelf}.CreateChecked{TOther}(TOther)" /> 1451where TOther : INumberBase<TOther> 1467/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" /> 1470where TOther : INumberBase<TOther> 1486/// <inheritdoc cref="INumberBase{TSelf}.CreateTruncating{TOther}(TOther)" /> 1489where TOther : INumberBase<TOther> 1505/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 1506static bool INumberBase<UInt128>.IsCanonical(UInt128 value) => true; 1508/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 1509static bool INumberBase<UInt128>.IsComplexNumber(UInt128 value) => false; 1511/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 1514/// <inheritdoc cref="INumberBase{TSelf}.IsFinite(TSelf)" /> 1515static bool INumberBase<UInt128>.IsFinite(UInt128 value) => true; 1517/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 1518static bool INumberBase<UInt128>.IsImaginaryNumber(UInt128 value) => false; 1520/// <inheritdoc cref="INumberBase{TSelf}.IsInfinity(TSelf)" /> 1521static bool INumberBase<UInt128>.IsInfinity(UInt128 value) => false; 1523/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 1524static bool INumberBase<UInt128>.IsInteger(UInt128 value) => true; 1526/// <inheritdoc cref="INumberBase{TSelf}.IsNaN(TSelf)" /> 1527static bool INumberBase<UInt128>.IsNaN(UInt128 value) => false; 1529/// <inheritdoc cref="INumberBase{TSelf}.IsNegative(TSelf)" /> 1530static bool INumberBase<UInt128>.IsNegative(UInt128 value) => false; 1532/// <inheritdoc cref="INumberBase{TSelf}.IsNegativeInfinity(TSelf)" /> 1533static bool INumberBase<UInt128>.IsNegativeInfinity(UInt128 value) => false; 1535/// <inheritdoc cref="INumberBase{TSelf}.IsNormal(TSelf)" /> 1536static bool INumberBase<UInt128>.IsNormal(UInt128 value) => value != 0U; 1538/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 1541/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 1542static bool INumberBase<UInt128>.IsPositive(UInt128 value) => true; 1544/// <inheritdoc cref="INumberBase{TSelf}.IsPositiveInfinity(TSelf)" /> 1545static bool INumberBase<UInt128>.IsPositiveInfinity(UInt128 value) => false; 1547/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 1548static bool INumberBase<UInt128>.IsRealNumber(UInt128 value) => true; 1550/// <inheritdoc cref="INumberBase{TSelf}.IsSubnormal(TSelf)" /> 1551static bool INumberBase<UInt128>.IsSubnormal(UInt128 value) => false; 1553/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 1554static bool INumberBase<UInt128>.IsZero(UInt128 value) => (value == 0U); 1556/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 1557static UInt128 INumberBase<UInt128>.MaxMagnitude(UInt128 x, UInt128 y) => Max(x, y); 1559/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 1560static UInt128 INumberBase<UInt128>.MaxMagnitudeNumber(UInt128 x, UInt128 y) => Max(x, y); 1562/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 1563static UInt128 INumberBase<UInt128>.MinMagnitude(UInt128 x, UInt128 y) => Min(x, y); 1565/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 1566static UInt128 INumberBase<UInt128>.MinMagnitudeNumber(UInt128 x, UInt128 y) => Min(x, y); 1568/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 1569static UInt128 INumberBase<UInt128>.MultiplyAddEstimate(UInt128 left, UInt128 right, UInt128 addend) => (left * right) + addend; 1571/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 1573static bool INumberBase<UInt128>.TryConvertFromChecked<TOther>(TOther value, out UInt128 result) => TryConvertFromChecked(value, out result); 1577where TOther : INumberBase<TOther> 1637/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 1639static bool INumberBase<UInt128>.TryConvertFromSaturating<TOther>(TOther value, out UInt128 result) => TryConvertFromSaturating(value, out result); 1643where TOther : INumberBase<TOther> 1703/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 1705static bool INumberBase<UInt128>.TryConvertFromTruncating<TOther>(TOther value, out UInt128 result) => TryConvertFromTruncating(value, out result); 1709where TOther : INumberBase<TOther> 1769/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 1771static bool INumberBase<UInt128>.TryConvertToChecked<TOther>(UInt128 value, [MaybeNullWhen(false)] out TOther result) 1843/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 1845static bool INumberBase<UInt128>.TryConvertToSaturating<TOther>(UInt128 value, [MaybeNullWhen(false)] out TOther result) 1923/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 1925static bool INumberBase<UInt128>.TryConvertToTruncating<TOther>(UInt128 value, [MaybeNullWhen(false)] out TOther result) 2138/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 2145/// <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)
609/// <inheritdoc cref="INumberBase{TSelf}.One" /> 610static nuint INumberBase<nuint>.One => 1; 612/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 613static int INumberBase<nuint>.Radix => 2; 615/// <inheritdoc cref="INumberBase{TSelf}.Zero" /> 616static nuint INumberBase<nuint>.Zero => 0; 618/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" /> 619static nuint INumberBase<nuint>.Abs(nuint value) => value; 621/// <inheritdoc cref="INumberBase{TSelf}.CreateChecked{TOther}(TOther)" /> 624where TOther : INumberBase<TOther> 640/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" /> 643where TOther : INumberBase<TOther> 659/// <inheritdoc cref="INumberBase{TSelf}.CreateTruncating{TOther}(TOther)" /> 662where TOther : INumberBase<TOther> 678/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 679static bool INumberBase<nuint>.IsCanonical(nuint value) => true; 681/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 682static bool INumberBase<nuint>.IsComplexNumber(nuint value) => false; 684/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 687/// <inheritdoc cref="INumberBase{TSelf}.IsFinite(TSelf)" /> 688static bool INumberBase<nuint>.IsFinite(nuint value) => true; 690/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 691static bool INumberBase<nuint>.IsImaginaryNumber(nuint value) => false; 693/// <inheritdoc cref="INumberBase{TSelf}.IsInfinity(TSelf)" /> 694static bool INumberBase<nuint>.IsInfinity(nuint value) => false; 696/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 697static bool INumberBase<nuint>.IsInteger(nuint value) => true; 699/// <inheritdoc cref="INumberBase{TSelf}.IsNaN(TSelf)" /> 700static bool INumberBase<nuint>.IsNaN(nuint value) => false; 702/// <inheritdoc cref="INumberBase{TSelf}.IsNegative(TSelf)" /> 703static bool INumberBase<nuint>.IsNegative(nuint value) => false; 705/// <inheritdoc cref="INumberBase{TSelf}.IsNegativeInfinity(TSelf)" /> 706static bool INumberBase<nuint>.IsNegativeInfinity(nuint value) => false; 708/// <inheritdoc cref="INumberBase{TSelf}.IsNormal(TSelf)" /> 709static bool INumberBase<nuint>.IsNormal(nuint value) => value != 0; 711/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 714/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 715static bool INumberBase<nuint>.IsPositive(nuint value) => true; 717/// <inheritdoc cref="INumberBase{TSelf}.IsPositiveInfinity(TSelf)" /> 718static bool INumberBase<nuint>.IsPositiveInfinity(nuint value) => false; 720/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 721static bool INumberBase<nuint>.IsRealNumber(nuint value) => true; 723/// <inheritdoc cref="INumberBase{TSelf}.IsSubnormal(TSelf)" /> 724static bool INumberBase<nuint>.IsSubnormal(nuint value) => false; 726/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 727static bool INumberBase<nuint>.IsZero(nuint value) => (value == 0); 729/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 730static nuint INumberBase<nuint>.MaxMagnitude(nuint x, nuint y) => Max(x, y); 732/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 733static nuint INumberBase<nuint>.MaxMagnitudeNumber(nuint x, nuint y) => Max(x, y); 735/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 736static nuint INumberBase<nuint>.MinMagnitude(nuint x, nuint y) => Min(x, y); 738/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 739static nuint INumberBase<nuint>.MinMagnitudeNumber(nuint x, nuint y) => Min(x, y); 741/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 742static nuint INumberBase<nuint>.MultiplyAddEstimate(nuint left, nuint right, nuint addend) => (nuint)((left * right) + addend); 744/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 746static bool INumberBase<nuint>.TryConvertFromChecked<TOther>(TOther value, out nuint result) => TryConvertFromChecked(value, out result); 750where TOther : INumberBase<TOther> 810/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 812static bool INumberBase<nuint>.TryConvertFromSaturating<TOther>(TOther value, out nuint result) => TryConvertFromSaturating(value, out result); 816where TOther : INumberBase<TOther> 877/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 879static bool INumberBase<nuint>.TryConvertFromTruncating<TOther>(TOther value, out nuint result) => TryConvertFromTruncating(value, out result); 883where TOther : INumberBase<TOther> 944/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 946static bool INumberBase<nuint>.TryConvertToChecked<TOther>(nuint value, [MaybeNullWhen(false)] out TOther result) 1018/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 1020static bool INumberBase<nuint>.TryConvertToSaturating<TOther>(nuint value, [MaybeNullWhen(false)] out TOther result) 1092/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 1094static bool INumberBase<nuint>.TryConvertToTruncating<TOther>(nuint value, [MaybeNullWhen(false)] out TOther result) 1210/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1213/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
393[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.INumberBase<>))]
System.Runtime.Numerics (116)
System\Numerics\BigInteger.cs (61)
3992/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 3993static int INumberBase<BigInteger>.Radix => 2; 3995/// <inheritdoc cref="INumberBase{TSelf}.CreateChecked{TOther}(TOther)" /> 3998where TOther : INumberBase<TOther> 4014/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" /> 4017where TOther : INumberBase<TOther> 4033/// <inheritdoc cref="INumberBase{TSelf}.CreateTruncating{TOther}(TOther)" /> 4036where TOther : INumberBase<TOther> 4052/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 4053static bool INumberBase<BigInteger>.IsCanonical(BigInteger value) => true; 4055/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 4056static bool INumberBase<BigInteger>.IsComplexNumber(BigInteger value) => false; 4058/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 4070/// <inheritdoc cref="INumberBase{TSelf}.IsFinite(TSelf)" /> 4071static bool INumberBase<BigInteger>.IsFinite(BigInteger value) => true; 4073/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 4074static bool INumberBase<BigInteger>.IsImaginaryNumber(BigInteger value) => false; 4076/// <inheritdoc cref="INumberBase{TSelf}.IsInfinity(TSelf)" /> 4077static bool INumberBase<BigInteger>.IsInfinity(BigInteger value) => false; 4079/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 4080static bool INumberBase<BigInteger>.IsInteger(BigInteger value) => true; 4082/// <inheritdoc cref="INumberBase{TSelf}.IsNaN(TSelf)" /> 4083static bool INumberBase<BigInteger>.IsNaN(BigInteger value) => false; 4085/// <inheritdoc cref="INumberBase{TSelf}.IsNegative(TSelf)" /> 4092/// <inheritdoc cref="INumberBase{TSelf}.IsNegativeInfinity(TSelf)" /> 4093static bool INumberBase<BigInteger>.IsNegativeInfinity(BigInteger value) => false; 4095/// <inheritdoc cref="INumberBase{TSelf}.IsNormal(TSelf)" /> 4096static bool INumberBase<BigInteger>.IsNormal(BigInteger value) => (value != 0); 4098/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 4110/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 4117/// <inheritdoc cref="INumberBase{TSelf}.IsPositiveInfinity(TSelf)" /> 4118static bool INumberBase<BigInteger>.IsPositiveInfinity(BigInteger value) => false; 4120/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 4121static bool INumberBase<BigInteger>.IsRealNumber(BigInteger value) => true; 4123/// <inheritdoc cref="INumberBase{TSelf}.IsSubnormal(TSelf)" /> 4124static bool INumberBase<BigInteger>.IsSubnormal(BigInteger value) => false; 4126/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 4127static bool INumberBase<BigInteger>.IsZero(BigInteger value) 4133/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 4155/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 4156static BigInteger INumberBase<BigInteger>.MaxMagnitudeNumber(BigInteger x, BigInteger y) => MaxMagnitude(x, y); 4158/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 4180/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 4181static BigInteger INumberBase<BigInteger>.MinMagnitudeNumber(BigInteger x, BigInteger y) => MinMagnitude(x, y); 4183/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 4184static BigInteger INumberBase<BigInteger>.MultiplyAddEstimate(BigInteger left, BigInteger right, BigInteger addend) => (left * right) + addend; 4186/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 4188static bool INumberBase<BigInteger>.TryConvertFromChecked<TOther>(TOther value, out BigInteger result) => TryConvertFromChecked(value, out result); 4192where TOther : INumberBase<TOther> 4303/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 4305static bool INumberBase<BigInteger>.TryConvertFromSaturating<TOther>(TOther value, out BigInteger result) => TryConvertFromSaturating(value, out result); 4309where TOther : INumberBase<TOther> 4420/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 4422static bool INumberBase<BigInteger>.TryConvertFromTruncating<TOther>(TOther value, out BigInteger result) => TryConvertFromTruncating(value, out result); 4426where TOther : INumberBase<TOther> 4537/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 4539static bool INumberBase<BigInteger>.TryConvertToChecked<TOther>(BigInteger value, [MaybeNullWhen(false)] out TOther result) 4656/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 4658static bool INumberBase<BigInteger>.TryConvertToSaturating<TOther>(BigInteger value, [MaybeNullWhen(false)] out TOther result) 4849/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 4851static bool INumberBase<BigInteger>.TryConvertToTruncating<TOther>(BigInteger value, [MaybeNullWhen(false)] out TOther result)
System\Numerics\Complex.cs (55)
928/// <inheritdoc cref="INumberBase{TSelf}.One" /> 929static Complex INumberBase<Complex>.One => new Complex(1.0, 0.0); 931/// <inheritdoc cref="INumberBase{TSelf}.Radix" /> 932static int INumberBase<Complex>.Radix => 2; 934/// <inheritdoc cref="INumberBase{TSelf}.Zero" /> 935static Complex INumberBase<Complex>.Zero => new Complex(0.0, 0.0); 937/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" /> 938static Complex INumberBase<Complex>.Abs(Complex value) => Abs(value); 940/// <inheritdoc cref="INumberBase{TSelf}.CreateChecked{TOther}(TOther)" /> 943where TOther : INumberBase<TOther> 959/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" /> 962where TOther : INumberBase<TOther> 978/// <inheritdoc cref="INumberBase{TSelf}.CreateTruncating{TOther}(TOther)" /> 981where TOther : INumberBase<TOther> 997/// <inheritdoc cref="INumberBase{TSelf}.IsCanonical(TSelf)" /> 998static bool INumberBase<Complex>.IsCanonical(Complex value) => true; 1000/// <inheritdoc cref="INumberBase{TSelf}.IsComplexNumber(TSelf)" /> 1003/// <inheritdoc cref="INumberBase{TSelf}.IsEvenInteger(TSelf)" /> 1006/// <inheritdoc cref="INumberBase{TSelf}.IsImaginaryNumber(TSelf)" /> 1009/// <inheritdoc cref="INumberBase{TSelf}.IsInteger(TSelf)" /> 1012/// <inheritdoc cref="INumberBase{TSelf}.IsNegative(TSelf)" /> 1021/// <inheritdoc cref="INumberBase{TSelf}.IsNegativeInfinity(TSelf)" /> 1030/// <inheritdoc cref="INumberBase{TSelf}.IsNormal(TSelf)" /> 1040/// <inheritdoc cref="INumberBase{TSelf}.IsOddInteger(TSelf)" /> 1043/// <inheritdoc cref="INumberBase{TSelf}.IsPositive(TSelf)" /> 1052/// <inheritdoc cref="INumberBase{TSelf}.IsPositiveInfinity(TSelf)" /> 1061/// <inheritdoc cref="INumberBase{TSelf}.IsRealNumber(TSelf)" /> 1064/// <inheritdoc cref="INumberBase{TSelf}.IsSubnormal(TSelf)" /> 1073/// <inheritdoc cref="INumberBase{TSelf}.IsZero(TSelf)" /> 1074static bool INumberBase<Complex>.IsZero(Complex value) => (value.m_real == 0.0) && (value.m_imaginary == 0.0); 1076/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitude(TSelf, TSelf)" /> 1166/// <inheritdoc cref="INumberBase{TSelf}.MaxMagnitudeNumber(TSelf, TSelf)" /> 1167static Complex INumberBase<Complex>.MaxMagnitudeNumber(Complex x, Complex y) 1256/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitude(TSelf, TSelf)" /> 1348/// <inheritdoc cref="INumberBase{TSelf}.MinMagnitudeNumber(TSelf, TSelf)" /> 1349static Complex INumberBase<Complex>.MinMagnitudeNumber(Complex x, Complex y) 1440/// <inheritdoc cref="INumberBase{TSelf}.MultiplyAddEstimate(TSelf, TSelf, TSelf)" /> 1441static Complex INumberBase<Complex>.MultiplyAddEstimate(Complex left, Complex right, Complex addend) 1457/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{char}, NumberStyles, IFormatProvider?)" /> 1467/// <inheritdoc cref="INumberBase{TSelf}.Parse(string, NumberStyles, IFormatProvider?)" /> 1474/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromChecked{TOther}(TOther, out TSelf)" /> 1476static bool INumberBase<Complex>.TryConvertFromChecked<TOther>(TOther value, out Complex result) 1481/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromSaturating{TOther}(TOther, out TSelf)" /> 1483static bool INumberBase<Complex>.TryConvertFromSaturating<TOther>(TOther value, out Complex result) 1488/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" /> 1490static bool INumberBase<Complex>.TryConvertFromTruncating<TOther>(TOther value, out Complex result) 1496where TOther : INumberBase<TOther> 1610/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToChecked{TOther}(TSelf, out TOther)" /> 1612static bool INumberBase<Complex>.TryConvertToChecked<TOther>(Complex value, [MaybeNullWhen(false)] out TOther result) 1809/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToSaturating{TOther}(TSelf, out TOther)" /> 1811static bool INumberBase<Complex>.TryConvertToSaturating<TOther>(Complex value, [MaybeNullWhen(false)] out TOther result) 1953/// <inheritdoc cref="INumberBase{TSelf}.TryConvertToTruncating{TOther}(TSelf, out TOther)" /> 1955static bool INumberBase<Complex>.TryConvertToTruncating<TOther>(Complex value, [MaybeNullWhen(false)] out TOther result) 2089/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{char}, NumberStyles, IFormatProvider?, out TSelf)" /> 2167/// <inheritdoc cref="INumberBase{TSelf}.TryParse(string, NumberStyles, IFormatProvider?, out TSelf)" />