2 interfaces inheriting from INumber
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Numerics\IBinaryNumber.cs (1)
10INumber<TSelf>
src\libraries\System.Private.CoreLib\src\System\Numerics\IFloatingPoint.cs (1)
10INumber<TSelf>,
397 references to INumber
Microsoft.AspNetCore.Hosting.Tests (1)
src\Shared\AsyncEnumerableExtensions.cs (1)
11public static async Task WaitForValueAsync<T>(this IAsyncEnumerator<T> values, T expectedValue, string operationName, ILogger logger) where T : INumber<T>
Microsoft.Data.Analysis (1)
Computations\Arithmetic.net8.cs (1)
95where T : unmanaged, INumber<T>
RunTests (1)
AssemblyScheduler.cs (1)
162where TWeight : struct, INumber<TWeight>
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)
34private sealed partial class RangeIterator<T> : Iterator<T> where T : INumber<T> 80private 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)
25where TSource : struct, INumber<TSource> 26where TResult : struct, INumber<TResult> 48where T : struct, INumber<T> 49where TResult : struct, INumber<TResult> 204where TSource : struct, INumber<TSource> 205where TAccumulator : struct, INumber<TAccumulator> 236where TResult : struct, INumber<TResult> 237where TAccumulator : struct, INumber<TAccumulator> 270where TResult : struct, INumber<TResult> 271where 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 (94)
System\Numerics\Tensors\netcore\Tensor.cs (46)
3004where T : INumber<T> 3017where T : INumber<T> 3031where T : INumber<T> 3045where T : INumber<T> 3529where T : INumber<T> 3541where T : INumber<T> 3552where T : INumber<T> 3565where T : INumber<T> 3811where T : INumber<T> 3827where T : INumber<T> 3839where T : INumber<T> 3850where T : INumber<T> 3862where T : INumber<T> 3874where T : INumber<T> 3890where T : INumber<T> 3902where T : INumber<T> 3913where T : INumber<T> 3925where T : INumber<T> 3953where T : INumber<T> 3965where T : INumber<T> 3976where T : INumber<T> 3988where T : INumber<T> 4000where T : INumber<T> 4016where T : INumber<T> 4028where T : INumber<T> 4039where T : INumber<T> 4051where T : INumber<T> 4063where T : INumber<T> 4079where T : INumber<T> 4091where T : INumber<T> 4102where T : INumber<T> 4114where T : INumber<T> 4126where T : INumber<T> 4142where T : INumber<T> 4154where T : INumber<T> 4165where T : INumber<T> 4177where T : INumber<T> 4205where T : INumber<T> 4217where T : INumber<T> 4228where T : INumber<T> 4240where T : INumber<T> 4252where T : INumber<T> 4268where T : INumber<T> 4280where T : INumber<T> 4291where T : INumber<T> 4303where T : INumber<T>
System\Numerics\Tensors\netcore\TensorOperation.cs (8)
863where T : INumber<T> 1352where T : INumber<T> 1389where T : INumber<T> 1463where T : INumber<T> 1500where T : INumber<T> 1537where T : INumber<T> 1611where T : INumber<T> 2716where 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> 177where T : INumber<T> 204where T : INumber<T> 216where 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 (3)
28where T : INumber<T> => 32internal readonly struct IndexOfMaxOperator<T> : IIndexOfOperator<T> where T : INumber<T> 135where T : INumber<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMaxMagnitude.cs (2)
26where T : INumber<T> => 29internal readonly struct IndexOfMaxMagnitudeOperator<T> : IIndexOfOperator<T> where T : INumber<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMin.cs (2)
25where T : INumber<T> => 29internal readonly struct IndexOfMinOperator<T> : IIndexOfOperator<T> where T : INumber<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMinMagnitude.cs (2)
26where T : INumber<T> => 29internal readonly struct IndexOfMinMagnitudeOperator<T> : IIndexOfOperator<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 (257)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (10)
524/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 527/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 528static byte INumber<byte>.CopySign(byte value, byte sign) => value; 530/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 533/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 534static byte INumber<byte>.MaxNumber(byte x, byte y) => Max(x, y); 536/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 539/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 540static byte INumber<byte>.MinNumber(byte x, byte y) => Min(x, y); 542/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (9)
1265/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 1268/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 1274/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 1280/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 1281static decimal INumber<decimal>.MaxNumber(decimal x, decimal y) => Max(x, y); 1283/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 1289/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 1290static decimal INumber<decimal>.MinNumber(decimal x, decimal y) => Min(x, y); 1292/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Double.cs (10)
942/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 952/// <inheritdoc cref="INumber{TSelf}.ClampNative(TSelf, TSelf, TSelf)" /> 962/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 965/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 969/// <inheritdoc cref="INumber{TSelf}.MaxNative(TSelf, TSelf)" /> 973/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 996/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 1000/// <inheritdoc cref="INumber{TSelf}.MinNative(TSelf, TSelf)" /> 1004/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 1027/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
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\libraries\System.Private.CoreLib\src\System\Enum.EnumInfo.cs (1)
13where TStorage : struct, INumber<TStorage>
src\libraries\System.Private.CoreLib\src\System\Half.cs (10)
1637/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 1640/// <inheritdoc cref="INumber{TSelf}.ClampNative(TSelf, TSelf, TSelf)" /> 1650/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 1663/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 1666/// <inheritdoc cref="INumber{TSelf}.MaxNative(TSelf, TSelf)" /> 1669/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 1691/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 1694/// <inheritdoc cref="INumber{TSelf}.MinNative(TSelf, TSelf)" /> 1697/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 1719/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int128.cs (9)
1201/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 1221/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 1242/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 1245/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 1246static Int128 INumber<Int128>.MaxNumber(Int128 x, Int128 y) => Max(x, y); 1248/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 1251/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 1252static Int128 INumber<Int128>.MinNumber(Int128 x, Int128 y) => Min(x, y); 1254/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int16.cs (9)
618/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 621/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 644/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 647/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 648static short INumber<short>.MaxNumber(short x, short y) => Max(x, y); 650/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 653/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 654static short INumber<short>.MinNumber(short x, short y) => Min(x, y); 656/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int32.cs (9)
659/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 662/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 685/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 688/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 689static int INumber<int>.MaxNumber(int x, int y) => Max(x, y); 691/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 694/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 695static int INumber<int>.MinNumber(int x, int y) => Min(x, y); 697/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int64.cs (9)
656/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 659/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 682/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 685/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 686static long INumber<long>.MaxNumber(long x, long y) => Max(x, y); 688/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 691/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 692static long INumber<long>.MinNumber(long x, long y) => Min(x, y); 694/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (9)
669/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 672/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 695/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 698/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 699static nint INumber<nint>.MaxNumber(nint x, nint y) => Max(x, y); 701/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 704/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 705static nint INumber<nint>.MinNumber(nint x, nint y) => Min(x, y); 707/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
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\libraries\System.Private.CoreLib\src\System\Numerics\INumber.cs (1)
17where TSelf : INumber<TSelf>?
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector.cs (4)
2394where TSource : INumber<TSource> 2395where TResult : INumber<TResult> 2463where TSource : INumber<TSource> 2464where TResult : INumber<TResult>
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (10)
1247/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 1250/// <inheritdoc cref="INumber{TSelf}.ClampNative(TSelf, TSelf, TSelf)" /> 1253/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 1256/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 1259/// <inheritdoc cref="INumber{TSelf}.MaxNative(TSelf, TSelf)" /> 1262/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 1265/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 1268/// <inheritdoc cref="INumber{TSelf}.MinNative(TSelf, TSelf)" /> 1271/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 1274/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (4)
2703where TSource : INumber<TSource> 2704where TResult : INumber<TResult> 2800where TSource : INumber<TSource> 2801where TResult : INumber<TResult>
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (4)
2787where TSource : INumber<TSource> 2788where TResult : INumber<TResult> 2856where TSource : INumber<TSource> 2857where TResult : INumber<TResult>
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (4)
2812where TSource : INumber<TSource> 2813where TResult : INumber<TResult> 2881where TSource : INumber<TSource> 2882where TResult : INumber<TResult>
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64.cs (4)
2780where TSource : INumber<TSource> 2781where TResult : INumber<TResult> 2849where TSource : INumber<TSource> 2850where TResult : INumber<TResult>
src\libraries\System.Private.CoreLib\src\System\SByte.cs (9)
581/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 584/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 607/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 610/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 611static sbyte INumber<sbyte>.MaxNumber(sbyte x, sbyte y) => Max(x, y); 613/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 616/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 617static sbyte INumber<sbyte>.MinNumber(sbyte x, sbyte y) => Min(x, y); 619/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\SearchValues\Any1SearchValues.cs (1)
13where TImpl : struct, INumber<TImpl>
src\libraries\System.Private.CoreLib\src\System\SearchValues\Any2SearchValues.cs (1)
13where TImpl : struct, INumber<TImpl>
src\libraries\System.Private.CoreLib\src\System\SearchValues\Any3SearchValues.cs (1)
13where TImpl : struct, INumber<TImpl>
src\libraries\System.Private.CoreLib\src\System\SearchValues\Any4SearchValues.cs (1)
13where TImpl : struct, INumber<TImpl>
src\libraries\System.Private.CoreLib\src\System\SearchValues\Any5SearchValues.cs (1)
13where TImpl : struct, INumber<TImpl>
src\libraries\System.Private.CoreLib\src\System\SearchValues\SearchValues.cs (1)
245where T : struct, INumber<T>, IMinMaxValue<T>
src\libraries\System.Private.CoreLib\src\System\Single.cs (10)
939/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 949/// <inheritdoc cref="INumber{TSelf}.ClampNative(TSelf, TSelf, TSelf)" /> 959/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 962/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 966/// <inheritdoc cref="INumber{TSelf}.MaxNative(TSelf, TSelf)" /> 970/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 993/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 997/// <inheritdoc cref="INumber{TSelf}.MinNative(TSelf, TSelf)" /> 1001/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 1024/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
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\libraries\System.Private.CoreLib\src\System\UInt128.cs (10)
1399/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 1419/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 1420static UInt128 INumber<UInt128>.CopySign(UInt128 value, UInt128 sign) => value; 1422/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 1425/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 1426static UInt128 INumber<UInt128>.MaxNumber(UInt128 x, UInt128 y) => Max(x, y); 1428/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 1431/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 1432static UInt128 INumber<UInt128>.MinNumber(UInt128 x, UInt128 y) => Min(x, y); 1434/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (10)
543/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 546/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 547static ushort INumber<ushort>.CopySign(ushort value, ushort sign) => value; 549/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 552/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 553static ushort INumber<ushort>.MaxNumber(ushort x, ushort y) => Max(x, y); 555/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 558/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 559static ushort INumber<ushort>.MinNumber(ushort x, ushort y) => Min(x, y); 561/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (10)
582/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 585/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 586static uint INumber<uint>.CopySign(uint value, uint sign) => value; 588/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 591/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 592static uint INumber<uint>.MaxNumber(uint x, uint y) => Max(x, y); 594/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 597/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 598static uint INumber<uint>.MinNumber(uint x, uint y) => Min(x, y); 600/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (10)
581/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 584/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 585static ulong INumber<ulong>.CopySign(ulong value, ulong sign) => value; 587/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 590/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 591static ulong INumber<ulong>.MaxNumber(ulong x, ulong y) => Max(x, y); 593/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 596/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 597static ulong INumber<ulong>.MinNumber(ulong x, ulong y) => Min(x, y); 599/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (10)
597/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 600/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 601static nuint INumber<nuint>.CopySign(nuint value, nuint sign) => value; 603/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 606/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 607static nuint INumber<nuint>.MaxNumber(nuint x, nuint y) => Max(x, y); 609/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 612/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 613static nuint INumber<nuint>.MinNumber(nuint x, nuint y) => Min(x, y); 615/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\System\Enum.CoreCLR.cs (1)
80where TStorage : struct, INumber<TStorage>
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net11.0\System.Runtime.Forwards.cs (1)
396[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)
3736/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 3767/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 3790/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 3791static BigInteger INumber<BigInteger>.MaxNumber(BigInteger x, BigInteger y) => Max(x, y); 3793/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 3794static BigInteger INumber<BigInteger>.MinNumber(BigInteger x, BigInteger y) => Min(x, y); 3796/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" /> 3797static 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>