2 interfaces inheriting from INumber
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Numerics\IBinaryNumber.cs (1)
10
INumber
<TSelf>
src\libraries\System.Private.CoreLib\src\System\Numerics\IFloatingPoint.cs (1)
10
INumber
<TSelf>,
390 references to INumber
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (1)
src\Shared\AsyncEnumerableExtensions.cs (1)
11
public 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)
11
public static async Task WaitForValueAsync<T>(this IAsyncEnumerator<T> values, T expectedValue, string operationName, ILogger logger) where T :
INumber
<T>
RunTests (1)
AssemblyScheduler.cs (1)
162
where TWeight : struct,
INumber
<TWeight>
System.Formats.Tar (2)
System\Formats\Tar\TarHelpers.cs (2)
218
internal static T ParseNumeric<T>(ReadOnlySpan<byte> buffer) where T : struct,
INumber
<T>, IBinaryInteger<T>
241
internal static T ParseOctal<T>(ReadOnlySpan<byte> buffer) where T : struct,
INumber
<T>
System.Linq (28)
System\Linq\Average.cs (12)
85
where TSource : struct,
INumber
<TSource>
86
where TAccumulator : struct,
INumber
<TAccumulator>
87
where TResult : struct,
INumber
<TResult>
133
where TSource : struct,
INumber
<TSource>
134
where TAccumulator : struct,
INumber
<TAccumulator>
135
where TResult : struct,
INumber
<TResult>
180
where TSelector : struct,
INumber
<TSelector>
181
where TAccumulator : struct,
INumber
<TAccumulator>
182
where TResult : struct,
INumber
<TResult>
224
where TSelector : struct,
INumber
<TSelector>
225
where TAccumulator : struct,
INumber
<TAccumulator>
226
where TResult : struct,
INumber
<TResult>
System\Linq\Range.cs (2)
34
private sealed partial class RangeIterator<T> : Iterator<T> where T :
INumber
<T>
80
private static void FillIncrementing<T>(Span<T> destination, T value) where T :
INumber
<T>
System\Linq\Range.SpeedOpt.cs (1)
11
private sealed partial class RangeIterator<T> : IList<T>, IReadOnlyList<T> where T :
INumber
<T>
System\Linq\Select.SpeedOpt.cs (1)
250
private sealed class RangeSelectIterator<T, TResult> : Iterator<TResult> where T :
INumber
<T>
System\Linq\Sequence.cs (2)
29
public static IEnumerable<T> Sequence<T>(T start, T endInclusive, T step) where T :
INumber
<T>
111
static RangeIterator<T>? TryUseRange<TLarger>(T start, T endInclusive, T step, TLarger maxValue) where TLarger :
INumber
<TLarger>
System\Linq\Sum.cs (10)
25
where TSource : struct,
INumber
<TSource>
26
where TResult : struct,
INumber
<TResult>
48
where T : struct,
INumber
<T>
49
where TResult : struct,
INumber
<TResult>
204
where TSource : struct,
INumber
<TSource>
205
where TAccumulator : struct,
INumber
<TAccumulator>
236
where TResult : struct,
INumber
<TResult>
237
where TAccumulator : struct,
INumber
<TAccumulator>
270
where TResult : struct,
INumber
<TResult>
271
where TAccumulator : struct,
INumber
<TAccumulator>
System.Linq.AsyncEnumerable (1)
System\Linq\Sequence.cs (1)
29
public 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)
3004
where T :
INumber
<T>
3017
where T :
INumber
<T>
3031
where T :
INumber
<T>
3045
where T :
INumber
<T>
3529
where T :
INumber
<T>
3541
where T :
INumber
<T>
3552
where T :
INumber
<T>
3565
where T :
INumber
<T>
3811
where T :
INumber
<T>
3827
where T :
INumber
<T>
3839
where T :
INumber
<T>
3850
where T :
INumber
<T>
3862
where T :
INumber
<T>
3874
where T :
INumber
<T>
3890
where T :
INumber
<T>
3902
where T :
INumber
<T>
3913
where T :
INumber
<T>
3925
where T :
INumber
<T>
3953
where T :
INumber
<T>
3965
where T :
INumber
<T>
3976
where T :
INumber
<T>
3988
where T :
INumber
<T>
4000
where T :
INumber
<T>
4016
where T :
INumber
<T>
4028
where T :
INumber
<T>
4039
where T :
INumber
<T>
4051
where T :
INumber
<T>
4063
where T :
INumber
<T>
4079
where T :
INumber
<T>
4091
where T :
INumber
<T>
4102
where T :
INumber
<T>
4114
where T :
INumber
<T>
4126
where T :
INumber
<T>
4142
where T :
INumber
<T>
4154
where T :
INumber
<T>
4165
where T :
INumber
<T>
4177
where T :
INumber
<T>
4205
where T :
INumber
<T>
4217
where T :
INumber
<T>
4228
where T :
INumber
<T>
4240
where T :
INumber
<T>
4252
where T :
INumber
<T>
4268
where T :
INumber
<T>
4280
where T :
INumber
<T>
4291
where T :
INumber
<T>
4303
where T :
INumber
<T>
System\Numerics\Tensors\netcore\TensorOperation.cs (8)
863
where T :
INumber
<T>
1352
where T :
INumber
<T>
1389
where T :
INumber
<T>
1463
where T :
INumber
<T>
1500
where T :
INumber
<T>
1537
where T :
INumber
<T>
1611
where T :
INumber
<T>
2695
where T :
INumber
<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Clamp.cs (10)
31
where T :
INumber
<T>
60
where T :
INumber
<T>
89
where T :
INumber
<T>
118
where T :
INumber
<T>
145
where T :
INumber
<T>
177
where T :
INumber
<T>
204
where T :
INumber
<T>
216
where T :
INumber
<T>
264
where T :
INumber
<T>
312
where T :
INumber
<T>
System\Numerics\Tensors\netcore\TensorPrimitives.CopySign.cs (3)
24
where T :
INumber
<T>
46
where T :
INumber
<T>
56
private readonly struct CopySignOperator<T> : IBinaryOperator<T> where T :
INumber
<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMax.cs (3)
28
where T :
INumber
<T> =>
32
internal readonly struct IndexOfMaxOperator<T> : IIndexOfOperator<T> where T :
INumber
<T>
135
where T :
INumber
<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMaxMagnitude.cs (2)
26
where T :
INumber
<T> =>
29
internal readonly struct IndexOfMaxMagnitudeOperator<T> : IIndexOfOperator<T> where T :
INumber
<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMin.cs (2)
25
where T :
INumber
<T> =>
29
internal readonly struct IndexOfMinOperator<T> : IIndexOfOperator<T> where T :
INumber
<T>
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMinMagnitude.cs (2)
26
where T :
INumber
<T> =>
29
internal readonly struct IndexOfMinMagnitudeOperator<T> : IIndexOfOperator<T> where T :
INumber
<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Max.cs (4)
27
where T :
INumber
<T>
59
where T :
INumber
<T>
89
where T :
INumber
<T>
101
where T :
INumber
<T>
System\Numerics\Tensors\netcore\TensorPrimitives.MaxNumber.cs (4)
25
where T :
INumber
<T>
57
where T :
INumber
<T>
87
where T :
INumber
<T>
98
internal readonly struct MaxNumberOperator<T> : IAggregationOperator<T> where T :
INumber
<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Min.cs (4)
26
where T :
INumber
<T>
58
where T :
INumber
<T>
88
where T :
INumber
<T>
100
where T :
INumber
<T>
System\Numerics\Tensors\netcore\TensorPrimitives.MinNumber.cs (4)
25
where T :
INumber
<T>
57
where T :
INumber
<T>
87
where T :
INumber
<T>
98
internal readonly struct MinNumberOperator<T> : IAggregationOperator<T> where T :
INumber
<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Sign.cs (2)
22
where T :
INumber
<T> =>
27
where 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)" />
528
static 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)" />
534
static 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)" />
540
static 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)" />
1280
static 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)" />
1289
static 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)
164
where TStorage : struct,
INumber
<TStorage> =>
174
where TStorage : struct,
INumber
<TStorage>
493
where TStorage : struct,
INumber
<TStorage>
974
where TUnderlying : struct,
INumber
<TUnderlying>, IBitwiseOperators<TUnderlying, TUnderlying, TUnderlying>, IMinMaxValue<TUnderlying>
975
where TStorage : struct,
INumber
<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage>, IMinMaxValue<TStorage>
1044
where TStorage : struct,
INumber
<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage>
1452
where TUnderlying : struct,
INumber
<TUnderlying>, IBitwiseOperators<TUnderlying, TUnderlying, TUnderlying>
1453
where TStorage : struct,
INumber
<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage> =>
1464
where TUnderlying : struct,
INumber
<TUnderlying>, IBitwiseOperators<TUnderlying, TUnderlying, TUnderlying>
1465
where TStorage : struct,
INumber
<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage>
1481
where TUnderlying : struct,
INumber
<TUnderlying>, IBitwiseOperators<TUnderlying, TUnderlying, TUnderlying>, IMinMaxValue<TUnderlying>
1482
where TStorage : struct,
INumber
<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage>, IMinMaxValue<TStorage> =>
1494
where TUnderlying : struct,
INumber
<TUnderlying>, IBitwiseOperators<TUnderlying, TUnderlying, TUnderlying>, IMinMaxValue<TUnderlying>
1495
where TStorage : struct,
INumber
<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage>, IMinMaxValue<TStorage>
1857
where TUnderlying : struct,
INumber
<TUnderlying>, IBitwiseOperators<TUnderlying, TUnderlying, TUnderlying>, IMinMaxValue<TUnderlying>
1858
where TStorage : struct,
INumber
<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage>, IMinMaxValue<TStorage>
1892
where TUnderlying : struct,
INumber
<TUnderlying>, IBitwiseOperators<TUnderlying, TUnderlying, TUnderlying>, IMinMaxValue<TUnderlying>
1893
where TStorage : struct,
INumber
<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage>, IMinMaxValue<TStorage>
1929
where TStorage : struct,
INumber
<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage>
1962
where TStorage : struct,
INumber
<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage>
2024
where TStorage : struct,
INumber
<TStorage>
2062
where TStorage : struct,
INumber
<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage>
2267
internal static bool AreSequentialFromZero<TStorage>(TStorage[] values) where TStorage : struct,
INumber
<TStorage>
src\libraries\System.Private.CoreLib\src\System\Enum.EnumInfo.cs (1)
13
where 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)" />
1246
static 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)" />
1252
static 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)" />
648
static 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)" />
654
static 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)" />
689
static 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)" />
695
static 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)" />
686
static 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)" />
692
static 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)" />
699
static 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)" />
705
static 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)
17
where TSelf :
INumber
<TSelf>?
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector.cs (4)
2394
where TSource :
INumber
<TSource>
2395
where TResult :
INumber
<TResult>
2463
where TSource :
INumber
<TSource>
2464
where 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)
2703
where TSource :
INumber
<TSource>
2704
where TResult :
INumber
<TResult>
2800
where TSource :
INumber
<TSource>
2801
where TResult :
INumber
<TResult>
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (4)
2787
where TSource :
INumber
<TSource>
2788
where TResult :
INumber
<TResult>
2856
where TSource :
INumber
<TSource>
2857
where TResult :
INumber
<TResult>
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (4)
2812
where TSource :
INumber
<TSource>
2813
where TResult :
INumber
<TResult>
2881
where TSource :
INumber
<TSource>
2882
where TResult :
INumber
<TResult>
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64.cs (4)
2780
where TSource :
INumber
<TSource>
2781
where TResult :
INumber
<TResult>
2849
where TSource :
INumber
<TSource>
2850
where 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)" />
611
static 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)" />
617
static 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)
13
where TImpl : struct,
INumber
<TImpl>
src\libraries\System.Private.CoreLib\src\System\SearchValues\Any2SearchValues.cs (1)
13
where TImpl : struct,
INumber
<TImpl>
src\libraries\System.Private.CoreLib\src\System\SearchValues\Any3SearchValues.cs (1)
13
where TImpl : struct,
INumber
<TImpl>
src\libraries\System.Private.CoreLib\src\System\SearchValues\Any4SearchValues.cs (1)
13
where TImpl : struct,
INumber
<TImpl>
src\libraries\System.Private.CoreLib\src\System\SearchValues\Any5SearchValues.cs (1)
13
where TImpl : struct,
INumber
<TImpl>
src\libraries\System.Private.CoreLib\src\System\SearchValues\SearchValues.cs (1)
245
where 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)
1306
internal static bool ContainsValueType<T>(ref T searchSpace, T value, int length) where T : struct,
INumber
<T>
1316
internal static bool NonPackedContainsValueType<T>(ref T searchSpace, T value, int length) where T : struct,
INumber
<T>
1472
internal static int IndexOfValueType<T>(ref T searchSpace, T value, int length) where T : struct,
INumber
<T>
1476
internal static int IndexOfAnyExceptValueType<T>(ref T searchSpace, T value, int length) where T : struct,
INumber
<T>
1481
where TValue : struct,
INumber
<TValue>
1495
where TValue : struct,
INumber
<TValue>
1659
internal static int IndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, int length) where T : struct,
INumber
<T>
1663
internal static int IndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, int length) where T : struct,
INumber
<T>
1668
where TValue : struct,
INumber
<TValue>
1701
where TValue : struct,
INumber
<TValue>
1885
internal static int IndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, T value2, int length) where T : struct,
INumber
<T>
1889
internal static int IndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, T value2, int length) where T : struct,
INumber
<T>
1894
where TValue : struct,
INumber
<TValue>
1908
where TValue : struct,
INumber
<TValue>
2092
internal static int IndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, int length) where T : struct,
INumber
<T>
2096
internal static int IndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, int length) where T : struct,
INumber
<T>
2100
where TValue : struct,
INumber
<TValue>
2254
internal static int IndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, T value4, int length) where T : struct,
INumber
<T>
2258
internal static int IndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, T value4, int length) where T : struct,
INumber
<T>
2262
where TValue : struct,
INumber
<TValue>
2420
internal static int LastIndexOfValueType<T>(ref T searchSpace, T value, int length) where T : struct,
INumber
<T>
2424
internal static int LastIndexOfAnyExceptValueType<T>(ref T searchSpace, T value, int length) where T : struct,
INumber
<T>
2428
where TValue : struct,
INumber
<TValue>
2540
internal static int LastIndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, int length) where T : struct,
INumber
<T>
2544
internal static int LastIndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, int length) where T : struct,
INumber
<T>
2548
where TValue : struct,
INumber
<TValue>
2725
internal static int LastIndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, T value2, int length) where T : struct,
INumber
<T>
2729
internal static int LastIndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, T value2, int length) where T : struct,
INumber
<T>
2733
where TValue : struct,
INumber
<TValue>
2911
internal static int LastIndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, int length) where T : struct,
INumber
<T>
2915
internal static int LastIndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, int length) where T : struct,
INumber
<T>
2919
where TValue : struct,
INumber
<TValue>
3178
internal static int LastIndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, T value4, int length) where T : struct,
INumber
<T>
3182
internal static int LastIndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, T value4, int length) where T : struct,
INumber
<T>
3186
where 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)" />
1420
static 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)" />
1426
static 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)" />
1432
static 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)" />
547
static 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)" />
553
static 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)" />
559
static 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)" />
586
static 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)" />
592
static 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)" />
598
static 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)" />
585
static 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)" />
591
static 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)" />
597
static 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)" />
601
static 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)" />
607
static 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)" />
613
static nuint
INumber
<nuint>.MinNumber(nuint x, nuint y) => Min(x, y);
615
/// <inheritdoc cref="
INumber
{TSelf}.Sign(TSelf)" />
src\System\Enum.CoreCLR.cs (1)
80
where 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)
22
where 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)" />
3997
static BigInteger
INumber
<BigInteger>.MaxNumber(BigInteger x, BigInteger y) => Max(x, y);
3999
/// <inheritdoc cref="
INumber
{TSelf}.MinNumber(TSelf, TSelf)" />
4000
static BigInteger
INumber
<BigInteger>.MinNumber(BigInteger x, BigInteger y) => Min(x, y);
4002
/// <inheritdoc cref="
INumber
{TSelf}.Sign(TSelf)" />
4003
static int
INumber
<BigInteger>.Sign(BigInteger value)
System.Security.Cryptography (2)
System\Security\Cryptography\PemEncoding.cs (2)
132
where TChar : unmanaged, IEquatable<TChar>,
INumber
<TChar>
252
where TChar : IEquatable<TChar>,
INumber
<TChar>