Skip to content

OnixLabs.Core.Linq

matthew edited this page May 27, 2026 · 4 revisions

OnixLabs.Core.Linq Namespace

The OnixLabs.Core.Linq namespace provides LINQ-like extension methods for composing predicate expressions, querying enumerable sequences, and filtering queryable sources.

Namespace OnixLabs.Core.Linq
Assembly OnixLabs.Core.dll (NuGet)

Remarks

All three classes are declared [EditorBrowsable(EditorBrowsableState.Never)], so although they are public, their extension methods are hidden from IntelliSense completion lists; they are intended to be discovered through documentation and used as natural extensions of the underlying types.

Many of the enumerable extensions accept a null receiver — methods such as ForEach, GetContentHashCode, JoinToString, and ToCollectionString treat null as an empty sequence, while methods that must enumerate to produce a meaningful answer throw ArgumentNullException via the Preconditions guards. The *OrNone query methods return Optional<T> and Result<Optional<T>>, and the Where(Specification<T>) overloads bridge to the Specification<T> pattern that ExpressionExtensions helps compose.

Bring the namespace into scope with using OnixLabs.Core.Linq;.

Types in this namespace

Type Description
ExpressionExtensions Combines and negates boolean predicate expressions (Expression<Func<T, bool>>).
IEnumerableExtensions LINQ-like helpers for non-generic IEnumerable and generic IEnumerable<T> sequences.
IQueryableExtensions Specification-based filtering for IQueryable<T>.

See Also

ONIXLabs .NET Library


Clone this wiki locally