public void Move(ObjectHandle objectHandle, IntPtr targetIndex) { NativeException nativeException; NativeMethods.move(this, objectHandle, targetIndex, out nativeException); nativeException.ThrowIfNecessary(); }
public void Move(T item, int targetIndex) { if (targetIndex < 0) { throw new ArgumentOutOfRangeException(); } _listHandle.Move(item.ObjectHandle, (IntPtr)targetIndex); }