2 interfaces inheriting from IUnaryNegationOperators
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\INumberBase.cs (1)
29IUnaryNegationOperators<TSelf, TSelf>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\ISimdVector_2.cs (1)
30IUnaryNegationOperators<TSelf, TSelf>,
64 references to IUnaryNegationOperators
System.Numerics.Tensors (8)
System\Numerics\Tensors\netcore\Tensor.op_UnaryNegation.cs (5)
12where T : IUnaryNegationOperators<T, T> 25where T : IUnaryNegationOperators<T, T> 34where TScalar : IUnaryNegationOperators<TScalar, TScalar> 44where TScalar : IUnaryNegationOperators<TScalar, TScalar> 52where TScalar : IUnaryNegationOperators<TScalar, TScalar>
System\Numerics\Tensors\netcore\TensorOperation.cs (1)
1692where T : IUnaryNegationOperators<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Negate.cs (2)
24where T : IUnaryNegationOperators<T, T> 35internal 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)" /> 1167static byte IUnaryNegationOperators<byte, byte>.operator -(byte value) => (byte)(-value); 1169/// <inheritdoc cref="IUnaryNegationOperators{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" /> 1170static 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)" /> 2060static char IUnaryNegationOperators<char, char>.operator -(char value) => (char)(-value); 2062/// <inheritdoc cref="IUnaryNegationOperators{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" /> 2063static 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)" /> 2520static 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)" /> 1373static short IUnaryNegationOperators<short, short>.operator -(short value) => (short)(-value); 1375/// <inheritdoc cref="IUnaryNegationOperators{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" /> 1376static 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)" /> 1424static int IUnaryNegationOperators<int, int>.operator -(int value) => -value; 1426/// <inheritdoc cref="IUnaryNegationOperators{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" /> 1427static 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)" /> 1427static long IUnaryNegationOperators<long, long>.operator -(long value) => -value; 1429/// <inheritdoc cref="IUnaryNegationOperators{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" /> 1430static 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)" /> 1430static nint IUnaryNegationOperators<nint, nint>.operator -(nint value) => -value; 1432/// <inheritdoc cref="IUnaryNegationOperators{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" /> 1433static 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)
10where 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)" /> 1352static sbyte IUnaryNegationOperators<sbyte, sbyte>.operator -(sbyte value) => (sbyte)(-value); 1354/// <inheritdoc cref="IUnaryNegationOperators{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" /> 1355static 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)" /> 2208static 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)" /> 1172static ushort IUnaryNegationOperators<ushort, ushort>.operator -(ushort value) => (ushort)(-value); 1174/// <inheritdoc cref="IUnaryNegationOperators{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" /> 1175static 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)" /> 1243static uint IUnaryNegationOperators<uint, uint>.operator -(uint value) => 0u - value; 1245/// <inheritdoc cref="IUnaryNegationOperators{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" /> 1246static 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)" /> 1244static ulong IUnaryNegationOperators<ulong, ulong>.operator -(ulong value) => 0UL - value; 1246/// <inheritdoc cref="IUnaryNegationOperators{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" /> 1247static 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)" /> 1229static nuint IUnaryNegationOperators<nuint, nuint>.operator -(nuint value) => (nuint)0 - value; 1231/// <inheritdoc cref="IUnaryNegationOperators{TSelf, TResult}.op_CheckedUnaryNegation(TSelf)" /> 1232static 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<,>))]