Improved event naming

This commit is contained in:
TheXamlGuy
2024-05-12 19:55:20 +01:00
parent 9eafcc55d0
commit f0fd68c16e
56 changed files with 169 additions and 131 deletions
+6 -1
View File
@@ -1,3 +1,8 @@
namespace Toolkit.Foundation;
public record Deactivated;
public record Deactivated
{
public static DeactivatedEventArgs<TValue> As<TValue>(TValue value) => new(value);
public static DeactivatedEventArgs<TValue> As<TValue>() where TValue : new() => new(new TValue());
}