Files
Toolkit2/Toolkit.Foundation/Cancel.cs
T
2024-05-19 16:13:45 +01:00

11 lines
256 B
C#

namespace Toolkit.Foundation;
public record Cancel
{
public static CancelEventArgs<TValue> As<TValue>(TValue value) =>
new(value);
public static CancelEventArgs<TValue> As<TValue>() where TValue : new() =>
new(new TValue());
}