Louis namespace

Classes

NameDescription
ActionAsyncDisposableImplements both IAsyncDisposable and IDisposable by invoking a given callback upon disposal.
ActionDisposableImplements IDisposable by invoking a given Action upon disposal.
AsyncDisposableExtensionsProvides extension methods for objects implementing IAsyncDisposable.
DateOnlyExtensionsProvides extension methods for instances of DateOnly. This type is not available in the netstandard and .NET Framework builds of Louis, because their BCL has no DateOnly.
DateOnlyUtilityProvides utility methods to work with DateOnly. This type is not available in the netstandard and .NET Framework builds of Louis, because their BCL has no DateOnly.
DateTimeExtensionsProvides extension methods for instances of DateTime.
DateUtilityProvides utility methods to work with dates.
DisposingUtilityProvides utility methods to handle disposing of objects with a mix of IDisposable and IAsyncDisposable interfaces.
RangeCheckProvides methods to perform range checks and for constraining values to be within ranges.
TimeConstantsProvides constants for typical "magic numbers" used when working with times or time intervals.

Structs

NameDescription
LocalActionDisposableImplements IDisposable by invoking a given Action upon disposal. This type should be used instead of ActionDisposable when needed in a local scope, as it avoids a heap allocation.

Delegates

NameDescription
ReadOnlySpanFunc<T>A delegate taking no parameters and returning a ReadOnlySpan<T>.
ReadOnlySpanPredicate<T>Represents the method that defines a set of criteria and determines whether a read-only span meets those criteria.