Files
Toolkit2/Toolkit.Foundation/Cancel.cs
T
2024-11-29 21:20:14 +00:00

8 lines
239 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());
}