Added PersistEventArgs
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
namespace Toolkit.Foundation;
|
||||||
|
|
||||||
|
public class Persist
|
||||||
|
{
|
||||||
|
public static PersistEventArgs<TSender> As<TSender>(TSender sender) => new(sender);
|
||||||
|
|
||||||
|
public static PersistEventArgs<TSender> As<TSender>() where TSender : new() => new(new TSender());
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
namespace Toolkit.Foundation;
|
||||||
|
|
||||||
|
public record PersistEventArgs<TSender>(TSender? Sender = default);
|
||||||
Reference in New Issue
Block a user