Skip to content

Commit

Permalink
Fix de colección
Browse files Browse the repository at this point in the history
  • Loading branch information
TheXDS committed Oct 15, 2024
1 parent e2448ed commit 94f1069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lib/MCART/Types/ListEx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public ListEx(int initialSize) : base(initialSize) { }
if (!this.Any()) return false;
if (TriggerEvents)
{
RemovingItemEventArgs<T>? a = new(IndexOf(item), this.Last());
RemovingItemEventArgs<T>? a = new(IndexOf(item), item);
RemovingItem?.Invoke(this, a);
if (a.Cancel) return false;
var result = base.Remove(item);
Expand Down

0 comments on commit 94f1069

Please sign in to comment.