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>,
364 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 (22)
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\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.Numerics.Tensors (94)
System\Numerics\Tensors\netcore\Tensor.cs (46)
3316where T : INumber<T> 3329where T : INumber<T> 3343where T : INumber<T> 3357where T : INumber<T> 3926where T : INumber<T> 3938where T : INumber<T> 3949where T : INumber<T> 3962where T : INumber<T> 4208where T : INumber<T> 4224where T : INumber<T> 4236where T : INumber<T> 4247where T : INumber<T> 4259where T : INumber<T> 4271where T : INumber<T> 4287where T : INumber<T> 4299where T : INumber<T> 4310where T : INumber<T> 4322where T : INumber<T> 4350where T : INumber<T> 4362where T : INumber<T> 4373where T : INumber<T> 4385where T : INumber<T> 4397where T : INumber<T> 4413where T : INumber<T> 4425where T : INumber<T> 4436where T : INumber<T> 4448where T : INumber<T> 4460where T : INumber<T> 4476where T : INumber<T> 4488where T : INumber<T> 4499where T : INumber<T> 4511where T : INumber<T> 4523where T : INumber<T> 4539where T : INumber<T> 4551where T : INumber<T> 4562where T : INumber<T> 4574where T : INumber<T> 4602where T : INumber<T> 4614where T : INumber<T> 4625where T : INumber<T> 4637where T : INumber<T> 4649where T : INumber<T> 4665where T : INumber<T> 4677where T : INumber<T> 4688where T : INumber<T> 4700where 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> => 55where T : INumber<T> => 77where T : INumber<T> => 99where T : INumber<T> => 119where T : INumber<T> 146where T : INumber<T> => 166where T : INumber<T> => 171where T : INumber<T> 219where T : INumber<T> 267where T : INumber<T>
System\Numerics\Tensors\netcore\TensorPrimitives.CopySign.cs (3)
24where T : INumber<T> => 39where T : INumber<T> => 42private 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> => 54where T : INumber<T> => 77where T : INumber<T> => 82where T : INumber<T>
System\Numerics\Tensors\netcore\TensorPrimitives.MaxNumber.cs (4)
28where T : INumber<T> => 53where T : INumber<T> => 76where T : INumber<T> => 80internal readonly struct MaxNumberOperator<T> : IAggregationOperator<T> where T : INumber<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Min.cs (4)
27where T : INumber<T> => 52where T : INumber<T> => 75where T : INumber<T> => 80where T : INumber<T>
System\Numerics\Tensors\netcore\TensorPrimitives.MinNumber.cs (4)
28where T : INumber<T> => 53where T : INumber<T> => 76where T : INumber<T> => 80internal 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 (230)
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)
1200/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 1220/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 1241/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" /> 1244/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 1245static Int128 INumber<Int128>.MaxNumber(Int128 x, Int128 y) => Max(x, y); 1247/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" /> 1250/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 1251static Int128 INumber<Int128>.MinNumber(Int128 x, Int128 y) => Min(x, y); 1253/// <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\Runtime\InteropServices\NFloat.cs (10)
1247/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 1250/// <inheritdoc cref="INumber{TSelf}.Clamp(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\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)
1325internal static bool ContainsValueType<T>(ref T searchSpace, T value, int length) where T : struct, INumber<T> 1335internal static bool NonPackedContainsValueType<T>(ref T searchSpace, T value, int length) where T : struct, INumber<T> 1491internal static int IndexOfValueType<T>(ref T searchSpace, T value, int length) where T : struct, INumber<T> 1495internal static int IndexOfAnyExceptValueType<T>(ref T searchSpace, T value, int length) where T : struct, INumber<T> 1500where TValue : struct, INumber<TValue> 1514where TValue : struct, INumber<TValue> 1678internal static int IndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, int length) where T : struct, INumber<T> 1682internal static int IndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, int length) where T : struct, INumber<T> 1687where TValue : struct, INumber<TValue> 1720where TValue : struct, INumber<TValue> 1904internal static int IndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, T value2, int length) where T : struct, INumber<T> 1908internal static int IndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, T value2, int length) where T : struct, INumber<T> 1913where TValue : struct, INumber<TValue> 1927where TValue : struct, INumber<TValue> 2111internal static int IndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, int length) where T : struct, INumber<T> 2115internal static int IndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, int length) where T : struct, INumber<T> 2119where TValue : struct, INumber<TValue> 2273internal static int IndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, T value4, int length) where T : struct, INumber<T> 2277internal static int IndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, T value4, int length) where T : struct, INumber<T> 2281where TValue : struct, INumber<TValue> 2439internal static int LastIndexOfValueType<T>(ref T searchSpace, T value, int length) where T : struct, INumber<T> 2443internal static int LastIndexOfAnyExceptValueType<T>(ref T searchSpace, T value, int length) where T : struct, INumber<T> 2447where TValue : struct, INumber<TValue> 2559internal static int LastIndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, int length) where T : struct, INumber<T> 2563internal static int LastIndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, int length) where T : struct, INumber<T> 2567where TValue : struct, INumber<TValue> 2744internal static int LastIndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, T value2, int length) where T : struct, INumber<T> 2748internal static int LastIndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, T value2, int length) where T : struct, INumber<T> 2752where TValue : struct, INumber<TValue> 2930internal static int LastIndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, int length) where T : struct, INumber<T> 2934internal static int LastIndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, int length) where T : struct, INumber<T> 2938where TValue : struct, INumber<TValue> 3197internal static int LastIndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, T value4, int length) where T : struct, INumber<T> 3201internal static int LastIndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, T value4, int length) where T : struct, INumber<T> 3205where 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)
392[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)
3915/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" /> 3946/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" /> 3969/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" /> 3970static BigInteger INumber<BigInteger>.MaxNumber(BigInteger x, BigInteger y) => Max(x, y); 3972/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" /> 3973static BigInteger INumber<BigInteger>.MinNumber(BigInteger x, BigInteger y) => Min(x, y); 3975/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" /> 3976static 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>