This commit is contained in:
TheXamlGuy
2024-04-26 22:27:31 +01:00
parent d799eab511
commit 9f90ef693d
39 changed files with 236 additions and 211 deletions
+5 -4
View File
@@ -1,12 +1,13 @@
namespace Toolkit.Foundation;
public record Create<TValue>(TValue Value) :
INotification;
public record Create<TValue>(TValue Value);
public record Create
{
public static Create<TValue> As<TValue>(TValue value) => new(value);
public static Create<TValue> As<TValue>(TValue value) =>
new(value);
public static Create<TValue> As<TValue>() where TValue : new() => new(new TValue());
public static Create<TValue> As<TValue>() where TValue : new() =>
new(new TValue());
}