2 interfaces inheriting from INumber
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\IBinaryNumber.cs (1)
10INumber<TSelf>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\IFloatingPoint.cs (1)
10INumber<TSelf>,
415 references to INumber
Microsoft.Data.Analysis (1)
Computations\Arithmetic.net8.cs (1)
95where T : unmanaged, INumber<T>
Microsoft.Diagnostics.DataContractReader (2)
ContractDescriptorTarget.cs (2)
832public bool TryReadGlobal<T>(string name, [NotNullWhen(true)] out T? value, out string? type) where T : struct, INumber<T> 849public T ReadGlobal<T>(string name, out string? type) where T : struct, INumber<T>
Microsoft.Diagnostics.DataContractReader.Abstractions (3)
Target.cs (2)
177public abstract T ReadGlobal<T>(string name) where T : struct, INumber<T>; 186public abstract bool TryReadGlobal<T>(string name, [NotNullWhen(true)] out T? value) where T : struct, INumber<T>;
TargetTypeHelpers.cs (1)
20where T : struct, INumber<T>
System.Formats.Tar (2)
System\Formats\Tar\TarHelpers.cs (2)
221internal static T ParseNumeric<T>(ReadOnlySpan<byte> buffer) where T : struct, INumber<T>, IBinaryInteger<T> 244internal static T ParseOctal<T>(ReadOnlySpan<byte> buffer) where T : struct, INumber<T>
System.Linq (28)
System\Linq\Average.cs (12)
85where TSource : struct, INumber<TSource> 86where TAccumulator : struct, INumber<TAccumulator> 87where TResult : struct, INumber<TResult> 133where TSource : struct, INumber<TSource> 134where TAccumulator : struct, INumber<TAccumulator> 135where TResult : struct, INumber<TResult> 180where TSelector : struct, INumber<TSelector> 181where TAccumulator : struct, INumber<TAccumulator> 182where TResult : struct, INumber<TResult> 224where TSelector : struct, INumber<TSelector> 225where TAccumulator : struct, INumber<TAccumulator> 226where TResult : struct, INumber<TResult>
System\Linq\Range.cs (2)
32private sealed partial class RangeIterator<T> : Iterator<T> where T : INumber<T> 78private static void FillIncrementing<T>(Span<T> destination, T value) where T : INumber<T>
System\Linq\Range.SpeedOpt.cs (1)
11private sealed partial class RangeIterator<T> : IList<T>, IReadOnlyList<T> where T : INumber<T>
System\Linq\Select.SpeedOpt.cs (1)
250private sealed class RangeSelectIterator<T, TResult> : Iterator<TResult> where T : INumber<T>
System\Linq\Sequence.cs (2)
29public static IEnumerable<T> Sequence<T>(T start, T endInclusive, T step) where T : INumber<T> 111static RangeIterator<T>? TryUseRange<TLarger>(T start, T endInclusive, T step, TLarger maxValue) where TLarger : INumber<TLarger>
System\Linq\Sum.cs (10)
24where TSource : struct, INumber<TSource> 25where TResult : struct, INumber<TResult> 47where T : struct, INumber<T> 48where TResult : struct, INumber<TResult> 186where TSource : struct, INumber<TSource> 187where TAccumulator : struct, INumber<TAccumulator> 218where TResult : struct, INumber<TResult> 219where TAccumulator : struct, INumber<TAccumulator> 252where TResult : struct, INumber<TResult> 253where TAccumulator : struct, INumber<TAccumulator>
System.Linq.AsyncEnumerable (1)
System\Linq\Sequence.cs (1)
29public static IAsyncEnumerable<T> Sequence<T>(T start, T endInclusive, T step) where T : INumber<T>
System.Numerics.Tensors (108)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IIndexOfMinMaxOperator.cs (11)
24where T : INumber<T> where TOperator : struct, IIndexOfMinMaxOperator<T> 59where T : INumber<T> where TOperator : struct, IIndexOfMinMaxOperator<T> 86where T : INumber<T> where TOperator : struct, IIndexOfMinMaxOperator<T> where TInt : IBinaryInteger<TInt> 155where T : INumber<T> where TOperator : struct, IIndexOfMinMaxOperator<T> 230where T : INumber<T> where TOperator : struct, IIndexOfMinMaxOperator<T> 317where T : INumber<T> where TOperator : struct, IIndexOfMinMaxOperator<T> where TInt : IBinaryInteger<TInt> 386where T : INumber<T> where TOperator : struct, IIndexOfMinMaxOperator<T> 461where T : INumber<T> where TOperator : struct, IIndexOfMinMaxOperator<T> 548where T : INumber<T> where TOperator : struct, IIndexOfMinMaxOperator<T> where TInt : IBinaryInteger<TInt> 617where T : INumber<T> where TOperator : struct, IIndexOfMinMaxOperator<T> 692where T : INumber<T> where TOperator : struct, IIndexOfMinMaxOperator<T>
System\Numerics\Tensors\netcore\Tensor.cs (50)
3120where T : INumber<T> 3133where T : INumber<T> 3147where T : INumber<T> 3161where T : INumber<T> 3645where T : INumber<T> 3657where T : INumber<T> 3677where T : INumber<T> 3689where T : INumber<T> 3708where T : INumber<T> 3720where T : INumber<T> 3741where T : INumber<T> 3753where T : INumber<T> 4007where T : INumber<T> 4023where T : INumber<T> 4035where T : INumber<T> 4046where T : INumber<T> 4058where T : INumber<T> 4070where T : INumber<T> 4086where T : INumber<T> 4098where T : INumber<T> 4109where T : INumber<T> 4121where T : INumber<T> 4149where T : INumber<T> 4161where T : INumber<T> 4172where T : INumber<T> 4184where T : INumber<T> 4196where T : INumber<T> 4212where T : INumber<T> 4224where T : INumber<T> 4235where T : INumber<T> 4247where T : INumber<T> 4259where T : INumber<T> 4275where T : INumber<T> 4287where T : INumber<T> 4298where T : INumber<T> 4310where T : INumber<T> 4322where T : INumber<T> 4338where T : INumber<T> 4350where T : INumber<T> 4361where T : INumber<T> 4373where T : INumber<T> 4401where T : INumber<T> 4413where T : INumber<T> 4424where T : INumber<T> 4436where T : INumber<T> 4448where T : INumber<T> 4464where T : INumber<T> 4476where T : INumber<T> 4487where T : INumber<T> 4499where T : INumber<T>
System\Numerics\Tensors\netcore\TensorOperation.cs (8)
883where T : INumber<T> 1372where T : INumber<T> 1409where T : INumber<T> 1483where T : INumber<T> 1520where T : INumber<T> 1557where T : INumber<T> 1631where T : INumber<T> 2736where T : INumber<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Clamp.cs (10)
31where T : INumber<T> 60where T : INumber<T> 89where T : INumber<T> 118where T : INumber<T> 145where T : INumber<T> 172where T : INumber<T> 199where T : INumber<T> 211where T : INumber<T> 229where T : INumber<T> 242where T : INumber<T>
System\Numerics\Tensors\netcore\TensorPrimitives.CopySign.cs (3)
24where T : INumber<T> 46where T : INumber<T> 56private readonly struct CopySignOperator<T> : IBinaryOperator<T> where T : INumber<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMax.cs (2)
26where T : INumber<T> => 30internal readonly struct IndexOfMaxOperator<T> : IIndexOfMinMaxOperator<T> where T : INumber<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMaxMagnitude.cs (2)
26where T : INumber<T> => 29internal readonly struct IndexOfMaxMagnitudeOperator<T> : IIndexOfMinMaxOperator<T> where T : INumber<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMin.cs (2)
25where T : INumber<T> => 29internal readonly struct IndexOfMinOperator<T> : IIndexOfMinMaxOperator<T> where T : INumber<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMinMagnitude.cs (2)
26where T : INumber<T> => 29internal readonly struct IndexOfMinMagnitudeOperator<T> : IIndexOfMinMaxOperator<T> where T : INumber<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Max.cs (4)
27where T : INumber<T> 59where T : INumber<T> 89where T : INumber<T> 101where T : INumber<T>
System\Numerics\Tensors\netcore\TensorPrimitives.MaxNumber.cs (4)
25where T : INumber<T> 57where T : INumber<T> 87where T : INumber<T> 98internal readonly struct MaxNumberOperator<T> : IAggregationOperator<T> where T : INumber<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Min.cs (4)
26where T : INumber<T> 58where T : INumber<T> 88where T : INumber<T> 100where T : INumber<T>
System\Numerics\Tensors\netcore\TensorPrimitives.MinNumber.cs (4)
25where T : INumber<T> 57where T : INumber<T> 87where T : INumber<T> 98internal readonly struct MinNumberOperator<T> : IAggregationOperator<T> where T : INumber<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Sign.cs (2)
22where T : INumber<T> => 27where T : INumber<T>
System.Private.CoreLib (258)
Internal\Reflection\Augments\ReflectionAugments.cs (1)
478where TStorage : struct, INumber<TStorage>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (10)
519/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 522/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 523static byte INumber<byte>.CopySign(byte value, byte sign) => value; 525/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 528/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 529static byte INumber<byte>.MaxNumber(byte x, byte y) => Max(x, y); 531/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 534/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 535static byte INumber<byte>.MinNumber(byte x, byte y) => Min(x, y); 537/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (9)
1235/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 1238/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 1244/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 1250/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 1251static decimal INumber<decimal>.MaxNumber(decimal x, decimal y) => Max(x, y); 1253/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 1259/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 1260static decimal INumber<decimal>.MinNumber(decimal x, decimal y) => Min(x, y); 1262/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (10)
958/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 968/// <inheritdoc cref="INumber{TSelf}.ClampNative(TSelf, TSelf, TSelf)" /> 978/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 981/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 985/// <inheritdoc cref="INumber{TSelf}.MaxNative(TSelf, TSelf)" /> 989/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 1012/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 1016/// <inheritdoc cref="INumber{TSelf}.MinNative(TSelf, TSelf)" /> 1020/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 1043/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (23)
164where TStorage : struct, INumber<TStorage> => 174where TStorage : struct, INumber<TStorage> 493where TStorage : struct, INumber<TStorage> 974where TUnderlying : struct, INumber<TUnderlying>, IBitwiseOperators<TUnderlying, TUnderlying, TUnderlying>, IMinMaxValue<TUnderlying> 975where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage>, IMinMaxValue<TStorage> 1044where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage> 1453where TUnderlying : struct, INumber<TUnderlying>, IBitwiseOperators<TUnderlying, TUnderlying, TUnderlying> 1454where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage> => 1465where TUnderlying : struct, INumber<TUnderlying>, IBitwiseOperators<TUnderlying, TUnderlying, TUnderlying> 1466where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage> 1482where TUnderlying : struct, INumber<TUnderlying>, IBitwiseOperators<TUnderlying, TUnderlying, TUnderlying>, IMinMaxValue<TUnderlying> 1483where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage>, IMinMaxValue<TStorage> => 1495where TUnderlying : struct, INumber<TUnderlying>, IBitwiseOperators<TUnderlying, TUnderlying, TUnderlying>, IMinMaxValue<TUnderlying> 1496where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage>, IMinMaxValue<TStorage> 1858where TUnderlying : struct, INumber<TUnderlying>, IBitwiseOperators<TUnderlying, TUnderlying, TUnderlying>, IMinMaxValue<TUnderlying> 1859where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage>, IMinMaxValue<TStorage> 1893where TUnderlying : struct, INumber<TUnderlying>, IBitwiseOperators<TUnderlying, TUnderlying, TUnderlying>, IMinMaxValue<TUnderlying> 1894where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage>, IMinMaxValue<TStorage> 1930where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage> 1963where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage> 2025where TStorage : struct, INumber<TStorage> 2063where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage> 2268internal static bool AreSequentialFromZero<TStorage>(TStorage[] values) where TStorage : struct, INumber<TStorage>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (10)
1691/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 1694/// <inheritdoc cref="INumber{TSelf}.ClampNative(TSelf, TSelf, TSelf)" /> 1704/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 1717/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 1720/// <inheritdoc cref="INumber{TSelf}.MaxNative(TSelf, TSelf)" /> 1723/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 1745/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 1748/// <inheritdoc cref="INumber{TSelf}.MinNative(TSelf, TSelf)" /> 1751/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 1773/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (9)
1189/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 1209/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 1227/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 1230/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 1231static Int128 INumber<Int128>.MaxNumber(Int128 x, Int128 y) => Max(x, y); 1233/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 1236/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 1237static Int128 INumber<Int128>.MinNumber(Int128 x, Int128 y) => Min(x, y); 1239/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (9)
606/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 609/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 625/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 628/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 629static short INumber<short>.MaxNumber(short x, short y) => Max(x, y); 631/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 634/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 635static short INumber<short>.MinNumber(short x, short y) => Min(x, y); 637/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (9)
648/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 651/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 667/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 670/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 671static int INumber<int>.MaxNumber(int x, int y) => Max(x, y); 673/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 676/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 677static int INumber<int>.MinNumber(int x, int y) => Min(x, y); 679/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (9)
645/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 648/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 664/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 667/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 668static long INumber<long>.MaxNumber(long x, long y) => Max(x, y); 670/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 673/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 674static long INumber<long>.MinNumber(long x, long y) => Min(x, y); 676/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (9)
668/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 671/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 687/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 690/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 691static nint INumber<nint>.MaxNumber(nint x, nint y) => Max(x, y); 693/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 696/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 697static nint INumber<nint>.MinNumber(nint x, nint y) => Min(x, y); 699/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (7)
1296/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 1299/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 1312/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 1315/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 1337/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 1340/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 1362/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\INumber.cs (1)
17where TSelf : INumber<TSelf>?
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector.cs (4)
2658where TSource : INumber<TSource> 2659where TResult : INumber<TResult> 2727where TSource : INumber<TSource> 2728where TResult : INumber<TResult>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (10)
1174/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 1177/// <inheritdoc cref="INumber{TSelf}.ClampNative(TSelf, TSelf, TSelf)" /> 1180/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 1183/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 1186/// <inheritdoc cref="INumber{TSelf}.MaxNative(TSelf, TSelf)" /> 1189/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 1192/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 1195/// <inheritdoc cref="INumber{TSelf}.MinNative(TSelf, TSelf)" /> 1198/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 1201/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (4)
2889where TSource : INumber<TSource> 2890where TResult : INumber<TResult> 2986where TSource : INumber<TSource> 2987where TResult : INumber<TResult>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (4)
2981where TSource : INumber<TSource> 2982where TResult : INumber<TResult> 3050where TSource : INumber<TSource> 3051where TResult : INumber<TResult>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (4)
3015where TSource : INumber<TSource> 3016where TResult : INumber<TResult> 3084where TSource : INumber<TSource> 3085where TResult : INumber<TResult>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64.cs (4)
3080where TSource : INumber<TSource> 3081where TResult : INumber<TResult> 3149where TSource : INumber<TSource> 3150where TResult : INumber<TResult>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (9)
585/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 588/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 604/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 607/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 608static sbyte INumber<sbyte>.MaxNumber(sbyte x, sbyte y) => Max(x, y); 610/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 613/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 614static sbyte INumber<sbyte>.MinNumber(sbyte x, sbyte y) => Min(x, y); 616/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Any1SearchValues.cs (1)
13where TImpl : struct, INumber<TImpl>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Any2SearchValues.cs (1)
13where TImpl : struct, INumber<TImpl>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Any3SearchValues.cs (1)
13where TImpl : struct, INumber<TImpl>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Any4SearchValues.cs (1)
13where TImpl : struct, INumber<TImpl>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Any5SearchValues.cs (1)
13where TImpl : struct, INumber<TImpl>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\SearchValues.cs (1)
245where T : struct, INumber<T>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (10)
953/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 963/// <inheritdoc cref="INumber{TSelf}.ClampNative(TSelf, TSelf, TSelf)" /> 973/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 976/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 980/// <inheritdoc cref="INumber{TSelf}.MaxNative(TSelf, TSelf)" /> 984/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 1007/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 1011/// <inheritdoc cref="INumber{TSelf}.MinNative(TSelf, TSelf)" /> 1015/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 1038/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (35)
1462internal static bool ContainsValueType<T>(ref T searchSpace, T value, int length) where T : struct, INumber<T> 1472internal static bool NonPackedContainsValueType<T>(ref T searchSpace, T value, int length) where T : struct, INumber<T> 1635internal static int IndexOfValueType<T>(ref T searchSpace, T value, int length) where T : struct, INumber<T> 1639internal static int IndexOfAnyExceptValueType<T>(ref T searchSpace, T value, int length) where T : struct, INumber<T> 1644where TValue : struct, INumber<TValue> 1658where TValue : struct, INumber<TValue> 1850internal static int IndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, int length) where T : struct, INumber<T> 1854internal static int IndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, int length) where T : struct, INumber<T> 1859where TValue : struct, INumber<TValue> 1892where TValue : struct, INumber<TValue> 2110internal static int IndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, T value2, int length) where T : struct, INumber<T> 2114internal static int IndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, T value2, int length) where T : struct, INumber<T> 2119where TValue : struct, INumber<TValue> 2133where TValue : struct, INumber<TValue> 2351internal static int IndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, int length) where T : struct, INumber<T> 2355internal static int IndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, int length) where T : struct, INumber<T> 2359where TValue : struct, INumber<TValue> 2524internal static int IndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, T value4, int length) where T : struct, INumber<T> 2528internal static int IndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, T value4, int length) where T : struct, INumber<T> 2532where TValue : struct, INumber<TValue> 2700internal static int LastIndexOfValueType<T>(ref T searchSpace, T value, int length) where T : struct, INumber<T> 2704internal static int LastIndexOfAnyExceptValueType<T>(ref T searchSpace, T value, int length) where T : struct, INumber<T> 2708where TValue : struct, INumber<TValue> 2844internal static int LastIndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, int length) where T : struct, INumber<T> 2848internal static int LastIndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, int length) where T : struct, INumber<T> 2852where TValue : struct, INumber<TValue> 3061internal static int LastIndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, T value2, int length) where T : struct, INumber<T> 3065internal static int LastIndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, T value2, int length) where T : struct, INumber<T> 3069where TValue : struct, INumber<TValue> 3278internal static int LastIndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, int length) where T : struct, INumber<T> 3282internal static int LastIndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, int length) where T : struct, INumber<T> 3286where TValue : struct, INumber<TValue> 3550internal static int LastIndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, T value4, int length) where T : struct, INumber<T> 3554internal static int LastIndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, T value4, int length) where T : struct, INumber<T> 3558where TValue : struct, INumber<TValue>
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (10)
1427/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 1447/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 1448static UInt128 INumber<UInt128>.CopySign(UInt128 value, UInt128 sign) => value; 1450/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 1453/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 1454static UInt128 INumber<UInt128>.MaxNumber(UInt128 x, UInt128 y) => Max(x, y); 1456/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 1459/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 1460static UInt128 INumber<UInt128>.MinNumber(UInt128 x, UInt128 y) => Min(x, y); 1462/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (10)
524/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 527/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 528static ushort INumber<ushort>.CopySign(ushort value, ushort sign) => value; 530/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 533/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 534static ushort INumber<ushort>.MaxNumber(ushort x, ushort y) => Max(x, y); 536/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 539/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 540static ushort INumber<ushort>.MinNumber(ushort x, ushort y) => Min(x, y); 542/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (10)
589/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 592/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 593static uint INumber<uint>.CopySign(uint value, uint sign) => value; 595/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 598/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 599static uint INumber<uint>.MaxNumber(uint x, uint y) => Max(x, y); 601/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 604/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 605static uint INumber<uint>.MinNumber(uint x, uint y) => Min(x, y); 607/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (10)
596/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 599/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 600static ulong INumber<ulong>.CopySign(ulong value, ulong sign) => value; 602/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 605/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 606static ulong INumber<ulong>.MaxNumber(ulong x, ulong y) => Max(x, y); 608/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 611/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 612static ulong INumber<ulong>.MinNumber(ulong x, ulong y) => Min(x, y); 614/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (10)
595/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 598/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 599static nuint INumber<nuint>.CopySign(nuint value, nuint sign) => value; 601/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 604/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 605static nuint INumber<nuint>.MaxNumber(nuint x, nuint y) => Max(x, y); 607/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 610/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 611static nuint INumber<nuint>.MinNumber(nuint x, nuint y) => Min(x, y); 613/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
System\Enum.NativeAot.cs (1)
35where TStorage : struct, INumber<TStorage>
System\Reflection\EnumInfo.cs (1)
29where TStorage : struct, INumber<TStorage>
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
404[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.INumber<>))]
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\Marshalling\ExceptionAsHResultMarshaller.cs (1)
22where T : unmanaged, INumber<T>
System.Runtime.Numerics (8)
System\Numerics\BigInteger.cs (8)
4050/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 4076/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 4096/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 4097static BigInteger INumber<BigInteger>.MaxNumber(BigInteger x, BigInteger y) => Max(x, y); 4099/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 4100static BigInteger INumber<BigInteger>.MinNumber(BigInteger x, BigInteger y) => Min(x, y); 4102/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" /> 4103static int INumber<BigInteger>.Sign(BigInteger value)
System.Security.Cryptography (2)
System\Security\Cryptography\PemEncoding.cs (2)
132where TChar : unmanaged, IEquatable<TChar>, INumber<TChar> 252where TChar : IEquatable<TChar>, INumber<TChar>