Class Misc
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
aTThe first variable.
bTThe second variable.
Type Parameters
TThe type of the variables.
ValueIf<T>(T, bool)
public static T ValueIf<T>(T value, bool toggle) where T : struct
Parameters
valueTtogglebool
Returns
- T
Type Parameters
T