2 interfaces inheriting from IUnaryNegationOperators
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Numerics\INumberBase.cs (1)
29IUnaryNegationOperators<TSelf, TSelf>,
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\ISimdVector_2.cs (1)
30IUnaryNegationOperators<TSelf, TSelf>,
58 references to IUnaryNegationOperators
System.Numerics.Tensors (5)
System\Numerics\Tensors\netcore\Tensor.cs (2)
4770where T : IUnaryNegationOperators<T, T> 4781where T : IUnaryNegationOperators<T, T>
System\Numerics\Tensors\netcore\TensorOperation.cs (1)
1640where T : IUnaryNegationOperators<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Negate.cs (2)
24where T : IUnaryNegationOperators<T, T> => 28internal 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)" /> 1151static byte IUnaryNegationOperators<byte, byte>.operator -(byte value) => (byte)(-value); 1153/// <inheritdoc cref="IUnaryNegationOperators{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" /> 1154static 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)" /> 1967static char IUnaryNegationOperators<char, char>.operator -(char value) => (char)(-value); 1969/// <inheritdoc cref="IUnaryNegationOperators{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" /> 1970static 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)" /> 2245static 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)" /> 1355static short IUnaryNegationOperators<short, short>.operator -(short value) => (short)(-value); 1357/// <inheritdoc cref="IUnaryNegationOperators{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" /> 1358static 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)" /> 1397static int IUnaryNegationOperators<int, int>.operator -(int value) => -value; 1399/// <inheritdoc cref="IUnaryNegationOperators{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" /> 1400static 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)" /> 1400static long IUnaryNegationOperators<long, long>.operator -(long value) => -value; 1402/// <inheritdoc cref="IUnaryNegationOperators{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" /> 1403static 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)" /> 1372static 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)
10where TSelf : IUnaryNegationOperators<TSelf, TResult>?
src\libraries\System.Private.CoreLib\src\System\SByte.cs (4)
1317/// <inheritdoc cref="IUnaryNegationOperators{TSelf, TResult}.op_UnaryNegation(TSelf)" /> 1318static sbyte IUnaryNegationOperators<sbyte, sbyte>.operator -(sbyte value) => (sbyte)(-value); 1320/// <inheritdoc cref="IUnaryNegationOperators{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" /> 1321static 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)" /> 2161static 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)" /> 1170static ushort IUnaryNegationOperators<ushort, ushort>.operator -(ushort value) => (ushort)(-value); 1172/// <inheritdoc cref="IUnaryNegationOperators{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" /> 1173static 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)" /> 1215static uint IUnaryNegationOperators<uint, uint>.operator -(uint value) => 0u - value; 1217/// <inheritdoc cref="IUnaryNegationOperators{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" /> 1218static 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)" /> 1208static ulong IUnaryNegationOperators<ulong, ulong>.operator -(ulong value) => 0UL - value; 1210/// <inheritdoc cref="IUnaryNegationOperators{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" /> 1211static 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)" /> 1194static 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<,>))]