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