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>,
58 references to IUnaryNegationOperators
System.Numerics.Tensors (5)
System\Numerics\Tensors\netcore\Tensor.cs (2)
4770
where T :
IUnaryNegationOperators
<T, T>
4781
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> =>
28
internal readonly struct NegateOperator<T> : IUnaryOperator<T, T> where T :
IUnaryNegationOperators
<T, T>
System.Private.CoreLib (52)
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)
1966
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
1967
static char
IUnaryNegationOperators
<char, char>.operator -(char value) => (char)(-value);
1969
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" />
1970
static char
IUnaryNegationOperators
<char, char>.operator checked -(char value) => checked((char)(-value));
src\libraries\System.Private.CoreLib\src\System\Double.cs (2)
2244
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
2245
static double
IUnaryNegationOperators
<double, double>.operator -(double value) => -value;
src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
2289
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int128.cs (2)
2100
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
2103
/// <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)
1396
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
1397
static int
IUnaryNegationOperators
<int, int>.operator -(int value) => -value;
1399
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" />
1400
static int
IUnaryNegationOperators
<int, int>.operator checked -(int value) => checked(-value);
src\libraries\System.Private.CoreLib\src\System\Int64.cs (4)
1399
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
1400
static long
IUnaryNegationOperators
<long, long>.operator -(long value) => -value;
1402
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" />
1403
static long
IUnaryNegationOperators
<long, long>.operator checked -(long value) => checked(-value);
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (3)
1371
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
1372
static nint
IUnaryNegationOperators
<nint, nint>.operator -(nint value) => -value;
1374
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" />
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)
2160
/// <inheritdoc cref="
IUnaryNegationOperators
{TSelf, TResult}.op_UnaryNegation(TSelf)" />
2161
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 (3)
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)" />
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
400
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.
IUnaryNegationOperators
<,>))]