Table of Contents

Class Misc

Namespace
Garyon.Functions
Assembly
Garyon.dll

Contains functions that cannot be categorized otherwise.

public static class Misc
Inheritance
Misc
Inherited Members

Methods

Swap<T>(ref T, ref T)

Swaps the values of two variables.

public static void Swap<T>(ref T a, ref T b)

Parameters

a T

The first variable.

b T

The second variable.

Type Parameters

T

The type of the variables.

ValueIf<T>(T, bool)

public static T ValueIf<T>(T value, bool toggle) where T : struct

Parameters

value T
toggle bool

Returns

T

Type Parameters

T