Added the abilty to load configuration sections using * pattern

This commit is contained in:
TheXamlGuy
2024-04-24 23:08:58 +01:00
parent 5ded324d1a
commit d799eab511
5 changed files with 166 additions and 15 deletions
+8 -1
View File
@@ -2,4 +2,11 @@
namespace Toolkit.Foundation;
public record Create<TValue>(TValue Value) :
INotification;
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());
}