Files
Toolkit2/Toolkit.Foundation/Create.cs
T

12 lines
287 B
C#

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