Fixed more edge cases

This commit is contained in:
TheXamlGuy
2024-05-16 21:41:48 +01:00
parent 8c0436644a
commit 7f3c4c53cc
16 changed files with 93 additions and 33 deletions
+10
View File
@@ -0,0 +1,10 @@
namespace Toolkit.Foundation;
public record Validation
{
public static ValidationEventArgs<TValue> As<TValue>(TValue value) =>
new(value);
public static ValidationEventArgs<TValue> As<TValue>() where TValue : new() =>
new(new TValue());
}