SortableBindingListTGetEnumerator Method

Returns an enumerator that iterates through the SortableBindingListT.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
C#
public override IEnumerator<T> GetEnumerator()

Return Value

IEnumeratorT
An IEnumeratorT for the SortableBindingListT.

Implements

IEnumerableTGetEnumerator

Remarks

If the list is sorted (that is, when IsSorted returns ), then the items are returned in the sorted order. Otherwise, the items are returned in the order as they are stored in the wrapped underlying collection.

  Note

If the SortableBindingListT is sorted, or it was instantiated by the default constructor, then the returned enumerator supports the IEnumerator.Reset method; otherwise, it depends on the enumerator of the wrapped collection.

See Also