Improved event naming

This commit is contained in:
TheXamlGuy
2024-05-12 19:55:20 +01:00
parent 9eafcc55d0
commit f0fd68c16e
56 changed files with 169 additions and 131 deletions
+2 -4
View File
@@ -1,12 +1,10 @@
namespace Toolkit.Foundation;
public record Confirm<TValue>(TValue Value);
public record Confirm
{
public static Confirm<TValue> As<TValue>(TValue value) =>
public static ConfirmEventArgs<TValue> As<TValue>(TValue value) =>
new(value);
public static Confirm<TValue> As<TValue>() where TValue : new() =>
public static ConfirmEventArgs<TValue> As<TValue>() where TValue : new() =>
new(new TValue());
}