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