using Connected.Expressions.Expressions; using System.Collections.ObjectModel; namespace Connected.Expressions.Translation.Rewriters; public sealed class BindResultRewriter { public BindResultRewriter(IEnumerable columns, IEnumerable orderings) { Columns = columns as ReadOnlyCollection; Columns ??= new List(columns).AsReadOnly(); Orderings = orderings as ReadOnlyCollection; Orderings ??= new List(orderings).AsReadOnly(); } public ReadOnlyCollection? Columns { get; private set; } public ReadOnlyCollection? Orderings { get; private set; } }