Improved event naming
This commit is contained in:
@@ -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());
|
||||
}
|
||||
Reference in New Issue
Block a user