12 lines
286 B
C#
12 lines
286 B
C#
namespace Toolkit.Foundation;
|
|
|
|
public record Confirm<TValue>(TValue Value);
|
|
|
|
public record Confirm
|
|
{
|
|
public static Confirm<TValue> As<TValue>(TValue value) =>
|
|
new(value);
|
|
|
|
public static Confirm<TValue> As<TValue>() where TValue : new() =>
|
|
new(new TValue());
|
|
} |