This commit is contained in:
TheXamlGuy
2024-05-06 21:17:20 +01:00
parent 40845bb5b3
commit ff8e97f030
13 changed files with 145 additions and 26 deletions
+8 -8
View File
@@ -1,23 +1,23 @@
namespace Toolkit.Foundation;
public record Enumerate<TValue> : IEnumerate
public record Enumerate<TValue> :
IEnumerate
{
public object? Key { get; init; }
public EnumerateMode Mode { get; init; }
public static Enumerate<TValue, TOptions> With<TOptions>(TOptions options) where TOptions : class
{
return new Enumerate<TValue, TOptions>(options);
}
}
public interface IEnumerate
{
object? Key { get; init; }
}
public record Enumerate<TValue, TOptions>(TOptions? Options = null) : IEnumerate
public record Enumerate<TValue, TOptions>(TOptions? Options = null) :
IEnumerate
where TOptions : class
{
public object? Key { get; init; }
public EnumerateMode Mode { get; init; }
}