Added Validation logics

This commit is contained in:
TheXamlGuy
2024-06-16 13:42:36 +01:00
parent bca4a32964
commit a0b074c9e0
12 changed files with 160 additions and 58 deletions
+10
View File
@@ -0,0 +1,10 @@
namespace Toolkit.Foundation;
public record Validate
{
public static ValidateEventArgs<TValue> As<TValue>(TValue value) =>
new(value);
public static ValidateEventArgs<TValue> As<TValue>() where TValue : new() =>
new(new TValue());
}