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
+10
View File
@@ -0,0 +1,10 @@
namespace Toolkit.Foundation;
public record Initialized<TValue>(TValue Value);
public record Initialized
{
public static Initialized<TValue> As<TValue>(TValue value) => new(value);
public static Initialized<TValue> As<TValue>() where TValue : new() => new(new TValue());
}