namespace Toolkit.Foundation; public record Enumerate : IEnumerate { public object? Key { get; init; } public EnumerateMode Mode { get; init; } public static Enumerate With(TOptions options) where TOptions : class { return new Enumerate(options); } } public record Enumerate(TOptions? Options = null) : IEnumerate where TOptions : class { public object? Key { get; init; } public EnumerateMode Mode { get; init; } }