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
+5 -3
View File
@@ -1,8 +1,10 @@
namespace Toolkit.Foundation;
public record Request<TValue>;
public class Request
{
public static Request<TValue> As<TValue>() => new();
public static RequestEventArgs<TValue> As<TValue>(TValue value) =>
new(value);
public static RequestEventArgs<TValue> As<TValue>() where TValue : new() =>
new(new TValue());
}