示例#1
0
        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);
        }
示例#2
0
 protected virtual void OnPostProcess(EventArgs e)
 {
     if (PostProcess != null)
     {
         PostProcess?.Invoke(this, e);
     }
 }