Some refactoring
This commit is contained in:
@@ -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());
|
||||
}
|
||||
Reference in New Issue
Block a user