More edge cases

This commit is contained in:
TheXamlGuy
2024-05-26 14:51:25 +01:00
parent 6a2708c111
commit 2bd7b54fa0
6 changed files with 40 additions and 14 deletions
+10
View File
@@ -0,0 +1,10 @@
namespace Toolkit.Foundation;
public record Update
{
public static UpdateEventArgs<TValue> As<TValue>(TValue value) =>
new(value);
public static UpdateEventArgs<TValue> As<TValue>() where TValue : new() =>
new(new TValue());
}