protected void Swap(int first, int second) { T temp = _items[first]; _items[first] = _items[second]; postProcess?.Invoke(_items[first], second, first); _items[second] = temp; postProcess?.Invoke(_items[second], first, second); }
protected virtual void OnPostProcess(EventArgs e) { if (PostProcess != null) { PostProcess?.Invoke(this, e); } }