Improved event naming
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
namespace Toolkit.Foundation;
|
||||
|
||||
public record Activated<TValue>(TValue? Value = default);
|
||||
|
||||
public record Activated
|
||||
{
|
||||
public static Activated<TValue> As<TValue>(TValue value) => new(value);
|
||||
public static ActivatedEventArgs<TValue> As<TValue>(TValue value) => new(value);
|
||||
|
||||
public static Activated<TValue> As<TValue>() where TValue : new() => new(new TValue());
|
||||
public static ActivatedEventArgs<TValue> As<TValue>() where TValue : new() => new(new TValue());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user