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
+2 -4
View File
@@ -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());
}