2 interfaces inheriting from IUnaryNegationOperators
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\INumberBase.cs (1)
29
IUnaryNegationOperators
<TSelf, TSelf>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\ISimdVector_2.cs (1)
30
IUnaryNegationOperators
<TSelf, TSelf>,
64 references to IUnaryNegationOperators
System.Numerics.Tensors (8)
System\Numerics\Tensors\netcore\Tensor.op_UnaryNegation.cs (5)
12
where T :
IUnaryNegationOperators
<T, T>
25
where T :
IUnaryNegationOperators
<T, T>
34
where TScalar :
IUnaryNegationOperators
<TScalar, TScalar>
44
where TScalar :
IUnaryNegationOperators
<TScalar, TScalar>
52
where TScalar :
IUnaryNegationOperators
<TScalar, TScalar>
System\Numerics\Tensors\netcore\TensorOperation.cs (1)
1692
where T :
IUnaryNegationOperators
<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Negate.cs (2)
24
where T :
IUnaryNegationOperators
<T, T>
35
internal readonly struct NegateOperator<T> : IUnaryOperator<T, T> where T :
IUnaryNegationOperators
<T, T>
System.Private.CoreLib (55)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (4)
1166
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
1167
static byte
IUnaryNegationOperators
<byte, byte>.operator -(byte value) => (byte)(-value);
1169
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" />
1170
static byte
IUnaryNegationOperators
<byte, byte>.operator checked -(byte value) => checked((byte)(-value));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (4)
2059
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
2060
static char
IUnaryNegationOperators
<char, char>.operator -(char value) => (char)(-value);
2062
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" />
2063
static char
IUnaryNegationOperators
<char, char>.operator checked -(char value) => checked((char)(-value));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (2)
2519
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
2520
static double
IUnaryNegationOperators
<double, double>.operator -(double value) => -value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
2362
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (2)
2097
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
2100
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (4)
1372
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
1373
static short
IUnaryNegationOperators
<short, short>.operator -(short value) => (short)(-value);
1375
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" />
1376
static short
IUnaryNegationOperators
<short, short>.operator checked -(short value) => checked((short)(-value));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (4)
1423
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
1424
static int
IUnaryNegationOperators
<int, int>.operator -(int value) => -value;
1426
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" />
1427
static int
IUnaryNegationOperators
<int, int>.operator checked -(int value) => checked(-value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (4)
1426
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
1427
static long
IUnaryNegationOperators
<long, long>.operator -(long value) => -value;
1429
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" />
1430
static long
IUnaryNegationOperators
<long, long>.operator checked -(long value) => checked(-value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (4)
1429
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
1430
static nint
IUnaryNegationOperators
<nint, nint>.operator -(nint value) => -value;
1432
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" />
1433
static nint
IUnaryNegationOperators
<nint, nint>.operator checked -(nint value) => checked(-value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (1)
2083
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\IUnaryNegationOperators.cs (1)
10
where TSelf :
IUnaryNegationOperators
<TSelf, TResult>?
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (4)
1351
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
1352
static sbyte
IUnaryNegationOperators
<sbyte, sbyte>.operator -(sbyte value) => (sbyte)(-value);
1354
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" />
1355
static sbyte
IUnaryNegationOperators
<sbyte, sbyte>.operator checked -(sbyte value) => checked((sbyte)(-value));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (2)
2207
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
2208
static float
IUnaryNegationOperators
<float, float>.operator -(float value) => -value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (2)
2175
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
2178
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (4)
1171
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
1172
static ushort
IUnaryNegationOperators
<ushort, ushort>.operator -(ushort value) => (ushort)(-value);
1174
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" />
1175
static ushort
IUnaryNegationOperators
<ushort, ushort>.operator checked -(ushort value) => checked((ushort)(-value));
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (4)
1242
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
1243
static uint
IUnaryNegationOperators
<uint, uint>.operator -(uint value) => 0u - value;
1245
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" />
1246
static uint
IUnaryNegationOperators
<uint, uint>.operator checked -(uint value) => checked(0u - value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (4)
1243
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
1244
static ulong
IUnaryNegationOperators
<ulong, ulong>.operator -(ulong value) => 0UL - value;
1246
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" />
1247
static ulong
IUnaryNegationOperators
<ulong, ulong>.operator checked -(ulong value) => checked(0UL - value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (4)
1228
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
1229
static nuint
IUnaryNegationOperators
<nuint, nuint>.operator -(nuint value) => (nuint)0 - value;
1231
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" />
1232
static nuint
IUnaryNegationOperators
<nuint, nuint>.operator checked -(nuint value) => checked((nuint)0 - value);
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
412
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.
IUnaryNegationOperators
<,>))]