MyLibrary.Types Unit

Defines common generic helper types used by MyLibrary collections.

Remarks

Use these types to pass custom comparison and equality behavior, and to represent dictionary entries without depending on RTL-specific types.

Classes

EArgumentException

The exception that is thrown when an argument value is not valid.

EArgumentNilException

The exception that is thrown when an argument is nil and the called method does not accept nil.

EArgumentOutOfRangeException

The exception that is thrown when an argument is outside the allowed range of values.

EInvalidOperationException

The exception that is thrown when a method call is not valid for the object's current state.

EKeyNotFoundException

The exception that is thrown when a specified key cannot be found in a dictionary.

Records

TPair<TKey,TValue>

Represents a key/value pair.

Interfaces

IComparer<T>

Defines a method that compares two values of the same type.

IEqualityComparer<T>

Defines methods to support equality comparison of values.

Delegates

TComparison<T>

Represents a method that compares two values of the same type.

See also