This commit is contained in:
TheXamlGuy
2024-06-05 19:18:17 +01:00
parent b7fec9c83c
commit 29509e9d7a
16 changed files with 51 additions and 85 deletions
+2 -2
View File
@@ -2,9 +2,9 @@
public record Create
{
public static CreateEventArgs<TValue> As<TValue>(TValue value) =>
public static CreateEventArgs<TValue> As<TValue>(TValue value, params object[] Parameters) =>
new(value);
public static CreateEventArgs<TValue> As<TValue>() where TValue : new() =>
public static CreateEventArgs<TValue> As<TValue>(params object[] Parameters) where TValue : new() =>
new(new TValue());
}