Class UnaryOperatorExtensions
- Namespace
- Garyon.Extensions
- Assembly
- Garyon.dll
Provides inline extensions for applying unary operators.
[ExcludeFromCodeCoverage]
public static class UnaryOperatorExtensions
- Inheritance
-
UnaryOperatorExtensions
- Inherited Members
Methods
Invert(ref bool)
Inverts the given value (the "!" operator), and stores the result to the provided reference.
public static void Invert(this ref bool value)
Parameters
valueboolThe reference to the value whose inversion will be stored.
Remarks
This is a reference extension; the value of the reference is adjusted.
InvertBitwise(ref byte)
Inverts the given value bitwise (the "~" operator), and stores the result to the provided reference.
public static void InvertBitwise(this ref byte value)
Parameters
valuebyteThe reference to the value whose bitwise inversion will be stored.
Remarks
This is a reference extension; the value of the reference is adjusted.
InvertBitwise(ref short)
Inverts the given value bitwise (the "~" operator), and stores the result to the provided reference.
public static void InvertBitwise(this ref short value)
Parameters
valueshortThe reference to the value whose bitwise inversion will be stored.
Remarks
This is a reference extension; the value of the reference is adjusted.
InvertBitwise(ref int)
Inverts the given value bitwise (the "~" operator), and stores the result to the provided reference.
public static void InvertBitwise(this ref int value)
Parameters
valueintThe reference to the value whose bitwise inversion will be stored.
Remarks
This is a reference extension; the value of the reference is adjusted.
InvertBitwise(ref long)
Inverts the given value bitwise (the "~" operator), and stores the result to the provided reference.
public static void InvertBitwise(this ref long value)
Parameters
valuelongThe reference to the value whose bitwise inversion will be stored.
Remarks
This is a reference extension; the value of the reference is adjusted.
InvertBitwise(ref sbyte)
Inverts the given value bitwise (the "~" operator), and stores the result to the provided reference.
public static void InvertBitwise(this ref sbyte value)
Parameters
valuesbyteThe reference to the value whose bitwise inversion will be stored.
Remarks
This is a reference extension; the value of the reference is adjusted.
InvertBitwise(ref ushort)
Inverts the given value bitwise (the "~" operator), and stores the result to the provided reference.
public static void InvertBitwise(this ref ushort value)
Parameters
valueushortThe reference to the value whose bitwise inversion will be stored.
Remarks
This is a reference extension; the value of the reference is adjusted.
InvertBitwise(ref uint)
Inverts the given value bitwise (the "~" operator), and stores the result to the provided reference.
public static void InvertBitwise(this ref uint value)
Parameters
valueuintThe reference to the value whose bitwise inversion will be stored.
Remarks
This is a reference extension; the value of the reference is adjusted.
InvertBitwise(ref ulong)
Inverts the given value bitwise (the "~" operator), and stores the result to the provided reference.
public static void InvertBitwise(this ref ulong value)
Parameters
valueulongThe reference to the value whose bitwise inversion will be stored.
Remarks
This is a reference extension; the value of the reference is adjusted.
Negate(ref decimal)
Negates the given value (the "-" operator), and stores the result to the provided reference.
public static void Negate(this ref decimal value)
Parameters
valuedecimalThe reference to the value whose negation will be stored.
Remarks
This is a reference extension; the value of the reference is adjusted.
Negate(ref double)
Negates the given value (the "-" operator), and stores the result to the provided reference.
public static void Negate(this ref double value)
Parameters
valuedoubleThe reference to the value whose negation will be stored.
Remarks
This is a reference extension; the value of the reference is adjusted.
Negate(ref short)
Negates the given value (the "-" operator), and stores the result to the provided reference.
public static void Negate(this ref short value)
Parameters
valueshortThe reference to the value whose negation will be stored.
Remarks
This is a reference extension; the value of the reference is adjusted.
Negate(ref int)
Negates the given value (the "-" operator), and stores the result to the provided reference.
public static void Negate(this ref int value)
Parameters
valueintThe reference to the value whose negation will be stored.
Remarks
This is a reference extension; the value of the reference is adjusted.
Negate(ref long)
Negates the given value (the "-" operator), and stores the result to the provided reference.
public static void Negate(this ref long value)
Parameters
valuelongThe reference to the value whose negation will be stored.
Remarks
This is a reference extension; the value of the reference is adjusted.
Negate(ref sbyte)
Negates the given value (the "-" operator), and stores the result to the provided reference.
public static void Negate(this ref sbyte value)
Parameters
valuesbyteThe reference to the value whose negation will be stored.
Remarks
This is a reference extension; the value of the reference is adjusted.
Negate(ref float)
Negates the given value (the "-" operator), and stores the result to the provided reference.
public static void Negate(this ref float value)
Parameters
valuefloatThe reference to the value whose negation will be stored.
Remarks
This is a reference extension; the value of the reference is adjusted.