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>,
390 references to INumber
Microsoft.AspNetCore.ConcurrencyLimiter.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.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>
RunTests (1)
AssemblyScheduler.cs (1)
162where TWeight : struct, INumber<TWeight>
System.Formats.Tar (2)
System\Formats\Tar\TarHelpers.cs (2)
218internal static T ParseNumeric<T>(ReadOnlySpan<byte> buffer) where T : struct, INumber<T>, IBinaryInteger<T> 241internal 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> 2695where 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> 264where T : INumber<T> 312where 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 (250)
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)
1264/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 1267/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 1273/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 1279/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 1280static decimal INumber<decimal>.MaxNumber(decimal x, decimal y) => Max(x, y); 1282/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 1288/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 1289static decimal INumber<decimal>.MinNumber(decimal x, decimal y) => Min(x, y); 1291/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Double.cs (10)
940/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 950/// <inheritdoc cref="INumber{TSelf}.ClampNative(TSelf, TSelf, TSelf)" /> 960/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 963/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 967/// <inheritdoc cref="INumber{TSelf}.MaxNative(TSelf, TSelf)" /> 971/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 994/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 998/// <inheritdoc cref="INumber{TSelf}.MinNative(TSelf, TSelf)" /> 1002/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 1025/// <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> 1452where TUnderlying : struct, INumber<TUnderlying>, IBitwiseOperators<TUnderlying, TUnderlying, TUnderlying> 1453where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage> => 1464where TUnderlying : struct, INumber<TUnderlying>, IBitwiseOperators<TUnderlying, TUnderlying, TUnderlying> 1465where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage> 1481where TUnderlying : struct, INumber<TUnderlying>, IBitwiseOperators<TUnderlying, TUnderlying, TUnderlying>, IMinMaxValue<TUnderlying> 1482where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage>, IMinMaxValue<TStorage> => 1494where TUnderlying : struct, INumber<TUnderlying>, IBitwiseOperators<TUnderlying, TUnderlying, TUnderlying>, IMinMaxValue<TUnderlying> 1495where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage>, IMinMaxValue<TStorage> 1857where TUnderlying : struct, INumber<TUnderlying>, IBitwiseOperators<TUnderlying, TUnderlying, TUnderlying>, IMinMaxValue<TUnderlying> 1858where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage>, IMinMaxValue<TStorage> 1892where TUnderlying : struct, INumber<TUnderlying>, IBitwiseOperators<TUnderlying, TUnderlying, TUnderlying>, IMinMaxValue<TUnderlying> 1893where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage>, IMinMaxValue<TStorage> 1929where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage> 1962where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage> 2024where TStorage : struct, INumber<TStorage> 2062where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage> 2267internal 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)
1641/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 1644/// <inheritdoc cref="INumber{TSelf}.ClampNative(TSelf, TSelf, TSelf)" /> 1654/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 1667/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 1670/// <inheritdoc cref="INumber{TSelf}.MaxNative(TSelf, TSelf)" /> 1673/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 1695/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 1698/// <inheritdoc cref="INumber{TSelf}.MinNative(TSelf, TSelf)" /> 1701/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 1723/// <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\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)
937/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 947/// <inheritdoc cref="INumber{TSelf}.ClampNative(TSelf, TSelf, TSelf)" /> 957/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 960/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 964/// <inheritdoc cref="INumber{TSelf}.MaxNative(TSelf, TSelf)" /> 968/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 991/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 995/// <inheritdoc cref="INumber{TSelf}.MinNative(TSelf, TSelf)" /> 999/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 1022/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (35)
1306internal static bool ContainsValueType<T>(ref T searchSpace, T value, int length) where T : struct, INumber<T> 1316internal static bool NonPackedContainsValueType<T>(ref T searchSpace, T value, int length) where T : struct, INumber<T> 1472internal static int IndexOfValueType<T>(ref T searchSpace, T value, int length) where T : struct, INumber<T> 1476internal static int IndexOfAnyExceptValueType<T>(ref T searchSpace, T value, int length) where T : struct, INumber<T> 1481where TValue : struct, INumber<TValue> 1495where TValue : struct, INumber<TValue> 1659internal static int IndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, int length) where T : struct, INumber<T> 1663internal static int IndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, int length) where T : struct, INumber<T> 1668where TValue : struct, INumber<TValue> 1701where TValue : struct, INumber<TValue> 1885internal static int IndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, T value2, int length) where T : struct, INumber<T> 1889internal static int IndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, T value2, int length) where T : struct, INumber<T> 1894where TValue : struct, INumber<TValue> 1908where TValue : struct, INumber<TValue> 2092internal static int IndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, int length) where T : struct, INumber<T> 2096internal static int IndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, int length) where T : struct, INumber<T> 2100where TValue : struct, INumber<TValue> 2254internal static int IndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, T value4, int length) where T : struct, INumber<T> 2258internal static int IndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, T value4, int length) where T : struct, INumber<T> 2262where TValue : struct, INumber<TValue> 2420internal static int LastIndexOfValueType<T>(ref T searchSpace, T value, int length) where T : struct, INumber<T> 2424internal static int LastIndexOfAnyExceptValueType<T>(ref T searchSpace, T value, int length) where T : struct, INumber<T> 2428where TValue : struct, INumber<TValue> 2540internal static int LastIndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, int length) where T : struct, INumber<T> 2544internal static int LastIndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, int length) where T : struct, INumber<T> 2548where TValue : struct, INumber<TValue> 2725internal static int LastIndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, T value2, int length) where T : struct, INumber<T> 2729internal static int LastIndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, T value2, int length) where T : struct, INumber<T> 2733where TValue : struct, INumber<TValue> 2911internal static int LastIndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, int length) where T : struct, INumber<T> 2915internal static int LastIndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, int length) where T : struct, INumber<T> 2919where TValue : struct, INumber<TValue> 3178internal static int LastIndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, T value4, int length) where T : struct, INumber<T> 3182internal static int LastIndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, T value4, int length) where T : struct, INumber<T> 3186where 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\net10.0\System.Runtime.Forwards.cs (1)
393[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)
3942/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 3973/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 3996/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 3997static BigInteger INumber<BigInteger>.MaxNumber(BigInteger x, BigInteger y) => Max(x, y); 3999/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 4000static BigInteger INumber<BigInteger>.MinNumber(BigInteger x, BigInteger y) => Min(x, y); 4002/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" /> 4003static 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>