Table of Contents

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

value bool

The 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

value byte

The 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

value short

The 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

value int

The 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

value long

The 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

value sbyte

The 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

value ushort

The 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

value uint

The 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

value ulong

The 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

value decimal

The 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

value double

The 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

value short

The 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

value int

The 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

value long

The 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

value sbyte

The 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

value float

The reference to the value whose negation will be stored.

Remarks

This is a reference extension; the value of the reference is adjusted.