Some refactoring

This commit is contained in:
TheXamlGuy
2024-06-09 22:41:58 +01:00
parent 8d20c0a8c0
commit 5a98b67dcf
34 changed files with 177 additions and 106 deletions
+2 -4
View File
@@ -2,9 +2,7 @@
public class Notify
{
public static NotifyEventArgs<TValue> As<TValue>(TValue value) =>
new(value);
public static NotifyEventArgs<TSender> As<TSender>(TSender sender) => new(sender);
public static NotifyEventArgs<TValue> As<TValue>() where TValue : new() =>
new(new TValue());
public static NotifyEventArgs<TSender> As<TSender>() where TSender : new() => new(new TSender());
}