Utils

Miscellaneous utility classes.

Classes

Name Description
BeDuration A duration of time.
BeTimePoint A specific point in time relative to the current time.
DisposableList A disposable container of disposable objects.
StopWatch A StopWatch for timing operations.

Global Functions

Name Description
assert Assert by throwing a programmer error.
base64StringToUint8Array Given a base-64-encoded string, decode it into an array of bytes.
dispose Convenience function for disposing of a disposable object that may be undefined.
disposeArray Disposes of and empties a list of disposable objects.
using A 'using' function which is a substitution for .NET's using statement.
utf8ToString Given an array of bytes containing a utf-8 string, convert to a string.

Interfaces

Name Description
IDisposable Interface adopted by a type which has deterministic cleanup logic.

Namespaces

Name Description
JsonUtils Utility functions for converting from JSON objects, with default values.

Type Aliases

Name Description
DisposeFunc A definition of function which may be called to dispose an object
OrderedComparator A function that returns a numerical value indicating how two objects are ordered in relation to one another.

Last Updated: 17 December, 2018