Persistate API documentation
MoveUp Method (toMoveUp)
NamespacesPersistateIndexedList<(Of <(<'T>)>)>MoveUp(IOrderable)

[This is preliminary documentation and is subject to change.]

Moves an object upwards in an ordered collection, i.e. towards the start.
Declaration Syntax
public bool MoveUp(
	IOrderable toMoveUp
toMoveUp (IOrderable)
The object to move up.
Return Value
True if the object was moved up, false if the object was already the top (first) object in the collection.
The object swaps position in the collection with the object before it. This latter object may be null. The Order property of the moved object(s) is set appropriately.
ArgumentNullExceptionThrown if the supplied object was null.
InvalidOperationExceptionThrown if this is not an ordered collection
ArgumentExceptionThrown if the supplied object was not found at its appropriate position in the collection.

Assembly: Persistate (Module: Persistate) Version: (