2 interfaces inheriting from IUnaryNegationOperators
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Numerics\INumberBase.cs (1)
29
IUnaryNegationOperators
<TSelf, TSelf>,
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\ISimdVector_2.cs (1)
30
IUnaryNegationOperators
<TSelf, TSelf>,
60 references to IUnaryNegationOperators
System.Numerics.Tensors (5)
System\Numerics\Tensors\netcore\Tensor.cs (2)
4753
where T :
IUnaryNegationOperators
<T, T>
4764
where T :
IUnaryNegationOperators
<T, T>
System\Numerics\Tensors\netcore\TensorOperation.cs (1)
1640
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 (54)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (4)
1150
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
1151
static byte
IUnaryNegationOperators
<byte, byte>.operator -(byte value) => (byte)(-value);
1153
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" />
1154
static byte
IUnaryNegationOperators
<byte, byte>.operator checked -(byte value) => checked((byte)(-value));
src\libraries\System.Private.CoreLib\src\System\Char.cs (4)
1999
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
2000
static char
IUnaryNegationOperators
<char, char>.operator -(char value) => (char)(-value);
2002
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" />
2003
static char
IUnaryNegationOperators
<char, char>.operator checked -(char value) => checked((char)(-value));
src\libraries\System.Private.CoreLib\src\System\Double.cs (2)
2253
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
2254
static double
IUnaryNegationOperators
<double, double>.operator -(double value) => -value;
src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
2301
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int128.cs (2)
2086
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
2089
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int16.cs (4)
1354
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
1355
static short
IUnaryNegationOperators
<short, short>.operator -(short value) => (short)(-value);
1357
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" />
1358
static short
IUnaryNegationOperators
<short, short>.operator checked -(short value) => checked((short)(-value));
src\libraries\System.Private.CoreLib\src\System\Int32.cs (4)
1420
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
1421
static int
IUnaryNegationOperators
<int, int>.operator -(int value) => -value;
1423
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" />
1424
static int
IUnaryNegationOperators
<int, int>.operator checked -(int value) => checked(-value);
src\libraries\System.Private.CoreLib\src\System\Int64.cs (4)
1423
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
1424
static long
IUnaryNegationOperators
<long, long>.operator -(long value) => -value;
1426
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" />
1427
static long
IUnaryNegationOperators
<long, long>.operator checked -(long value) => checked(-value);
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (4)
1395
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
1396
static nint
IUnaryNegationOperators
<nint, nint>.operator -(nint value) => -value;
1398
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" />
1399
static nint
IUnaryNegationOperators
<nint, nint>.operator checked -(nint value) => checked(-value);
src\libraries\System.Private.CoreLib\src\System\Numerics\IUnaryNegationOperators.cs (1)
10
where TSelf :
IUnaryNegationOperators
<TSelf, TResult>?
src\libraries\System.Private.CoreLib\src\System\SByte.cs (4)
1317
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
1318
static sbyte
IUnaryNegationOperators
<sbyte, sbyte>.operator -(sbyte value) => (sbyte)(-value);
1320
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" />
1321
static sbyte
IUnaryNegationOperators
<sbyte, sbyte>.operator checked -(sbyte value) => checked((sbyte)(-value));
src\libraries\System.Private.CoreLib\src\System\Single.cs (2)
2169
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
2170
static float
IUnaryNegationOperators
<float, float>.operator -(float value) => -value;
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (2)
2121
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
2124
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (4)
1169
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
1170
static ushort
IUnaryNegationOperators
<ushort, ushort>.operator -(ushort value) => (ushort)(-value);
1172
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" />
1173
static ushort
IUnaryNegationOperators
<ushort, ushort>.operator checked -(ushort value) => checked((ushort)(-value));
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (4)
1214
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
1215
static uint
IUnaryNegationOperators
<uint, uint>.operator -(uint value) => 0u - value;
1217
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" />
1218
static uint
IUnaryNegationOperators
<uint, uint>.operator checked -(uint value) => checked(0u - value);
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (4)
1207
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
1208
static ulong
IUnaryNegationOperators
<ulong, ulong>.operator -(ulong value) => 0UL - value;
1210
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" />
1211
static ulong
IUnaryNegationOperators
<ulong, ulong>.operator checked -(ulong value) => checked(0UL - value);
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (4)
1193
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
1194
static nuint
IUnaryNegationOperators
<nuint, nuint>.operator -(nuint value) => (nuint)0 - value;
1196
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" />
1197
static nuint
IUnaryNegationOperators
<nuint, nuint>.operator checked -(nuint value) => checked((nuint)0 - value);
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
401
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.
IUnaryNegationOperators
<,>))]