WIP: Item counts
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
namespace Toolkit.Foundation;
|
||||
|
||||
public record Count
|
||||
{
|
||||
public static CountEventArgs<TSender> As<TSender>(TSender sender) =>
|
||||
new(sender);
|
||||
|
||||
public static CountEventArgs<TSender> As<TSender>() where TSender : new() =>
|
||||
new(new TSender());
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
namespace Toolkit.Foundation;
|
||||
|
||||
public record CountEventArgs<TSender>(TSender Sender);
|
||||
@@ -1,3 +1,3 @@
|
||||
namespace Toolkit.Foundation;
|
||||
|
||||
public record QueryEventArgs<TValue>(TValue Value);
|
||||
public record QueryEventArgs<TSender>(TSender Sender);
|
||||
Reference in New Issue
Block a user