Improved event naming
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
namespace Toolkit.Foundation;
|
||||
|
||||
public record Replace<TValue>(int Index, TValue Value);
|
||||
|
||||
public record Replace
|
||||
{
|
||||
public static Replace<TValue> As<TValue>(int index, TValue value) =>
|
||||
public static ReplaceEventArgs<TValue> As<TValue>(int index, TValue value) =>
|
||||
new(index, value);
|
||||
|
||||
public static Replace<TValue> As<TValue>(int index) where TValue : new() =>
|
||||
public static ReplaceEventArgs<TValue> As<TValue>(int index) where TValue : new() =>
|
||||
new(index, new TValue());
|
||||
}
|
||||
Reference in New Issue
Block a user