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>,
389 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>
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)
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)
3211where T : INumber<T> 3224where T : INumber<T> 3238where T : INumber<T> 3252where T : INumber<T> 3821where T : INumber<T> 3833where T : INumber<T> 3844where T : INumber<T> 3857where T : INumber<T> 4103where T : INumber<T> 4119where T : INumber<T> 4131where T : INumber<T> 4142where T : INumber<T> 4154where T : INumber<T> 4166where T : INumber<T> 4182where T : INumber<T> 4194where T : INumber<T> 4205where T : INumber<T> 4217where T : INumber<T> 4245where T : INumber<T> 4257where T : INumber<T> 4268where T : INumber<T> 4280where T : INumber<T> 4292where T : INumber<T> 4308where T : INumber<T> 4320where T : INumber<T> 4331where T : INumber<T> 4343where T : INumber<T> 4355where T : INumber<T> 4371where T : INumber<T> 4383where T : INumber<T> 4394where T : INumber<T> 4406where T : INumber<T> 4418where T : INumber<T> 4434where T : INumber<T> 4446where T : INumber<T> 4457where T : INumber<T> 4469where T : INumber<T> 4497where T : INumber<T> 4509where T : INumber<T> 4520where T : INumber<T> 4532where T : INumber<T> 4544where T : INumber<T> 4560where T : INumber<T> 4572where T : INumber<T> 4583where T : INumber<T> 4595where T : INumber<T>
System\Numerics\Tensors\netcore\TensorOperation.cs (8)
863where T : INumber<T> 1320where T : INumber<T> 1357where T : INumber<T> 1431where T : INumber<T> 1468where T : INumber<T> 1505where T : INumber<T> 1579where T : INumber<T> 2618where T : INumber<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Clamp.cs (10)
33where T : INumber<T> 62where T : INumber<T> 91where T : INumber<T> 120where T : INumber<T> 147where T : INumber<T> 179where T : INumber<T> 206where T : INumber<T> 218where T : INumber<T> 266where T : INumber<T> 314where 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)
29where T : INumber<T> 61where T : INumber<T> 91where T : INumber<T> 103where T : INumber<T>
System\Numerics\Tensors\netcore\TensorPrimitives.MaxNumber.cs (4)
28where T : INumber<T> 60where T : INumber<T> 90where T : INumber<T> 101internal readonly struct MaxNumberOperator<T> : IAggregationOperator<T> where T : INumber<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Min.cs (4)
27where T : INumber<T> 59where T : INumber<T> 89where T : INumber<T> 101where T : INumber<T>
System\Numerics\Tensors\netcore\TensorPrimitives.MinNumber.cs (4)
28where T : INumber<T> 60where T : INumber<T> 90where T : INumber<T> 101internal readonly struct MinNumberOperator<T> : IAggregationOperator<T> where T : INumber<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Sign.cs (2)
24where T : INumber<T> => 29where 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)
1196/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 1216/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 1237/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 1240/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 1241static Int128 INumber<Int128>.MaxNumber(Int128 x, Int128 y) => Max(x, y); 1243/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 1246/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 1247static Int128 INumber<Int128>.MinNumber(Int128 x, Int128 y) => Min(x, y); 1249/// <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)
651/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 654/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 677/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 680/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 681static nint INumber<nint>.MaxNumber(nint x, nint y) => Max(x, y); 683/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 686/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 687static nint INumber<nint>.MinNumber(nint x, nint y) => Min(x, y); 689/// <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)
2316where TSource : INumber<TSource> 2317where TResult : INumber<TResult> 2385where TSource : INumber<TSource> 2386where 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)
2616where TSource : INumber<TSource> 2617where TResult : INumber<TResult> 2713where TSource : INumber<TSource> 2714where TResult : INumber<TResult>
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (4)
2709where TSource : INumber<TSource> 2710where TResult : INumber<TResult> 2778where TSource : INumber<TSource> 2779where TResult : INumber<TResult>
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (4)
2734where TSource : INumber<TSource> 2735where TResult : INumber<TResult> 2803where TSource : INumber<TSource> 2804where TResult : INumber<TResult>
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64.cs (4)
2702where TSource : INumber<TSource> 2703where TResult : INumber<TResult> 2771where TSource : INumber<TSource> 2772where 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)
1394/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 1414/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 1415static UInt128 INumber<UInt128>.CopySign(UInt128 value, UInt128 sign) => value; 1417/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 1420/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 1421static UInt128 INumber<UInt128>.MaxNumber(UInt128 x, UInt128 y) => Max(x, y); 1423/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 1426/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 1427static UInt128 INumber<UInt128>.MinNumber(UInt128 x, UInt128 y) => Min(x, y); 1429/// <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)
584/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 587/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 588static nuint INumber<nuint>.CopySign(nuint value, nuint sign) => value; 590/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 593/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 594static nuint INumber<nuint>.MaxNumber(nuint x, nuint y) => Max(x, y); 596/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 599/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 600static nuint INumber<nuint>.MinNumber(nuint x, nuint y) => Min(x, y); 602/// <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)