Table of Contents

Class SortList<T>

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

Represents sorted list of objects.

[Serializable]
public class SortList<T> : List<T>, IList, ICollection, IReadOnlyList<T>, IReadOnlyCollection<T>, ISortList<T>, IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable

Type Parameters

T
Represents sorted list of objects.
Inheritance
List<T>
SortList<T>
Implements
Derived
Extension Methods

Properties

CompareIndex

Represents index of element that currently comparing.

Count

Gets the number of elements actually contained in the SortList.

Methods

FindExact(object, out int, IComparer)

Finds the given object in the sorted list with assumption that sorted list do not have any duplicates.

FindExact(T, out int, IComparer<T>)

Finds the given object in the sorted list with assumption that sorted list do not have any duplicates.

FindFirst(object, out int, IComparer)

Finds the first occurrence of the given object that satisfies searching criteria.

FindFirst(T, out int, IComparer<T>)

Finds the first occurrence of the given object that satisfies searching criteria.

FindLast(object, out int, IComparer)

Finds the last occurrence of the given object that satisfies searching criteria.

FindLast(T, out int, IComparer<T>)

Finds the last occurrence of the given object that satisfies searching criteria.

InsideRange(Point, Rectangle)

Indicates whether specified rectangle contains given position.

InsideRange(Point, Rectangle, bool)

Indicates whether specified rectangle contains given position.

NeedSort(IComparer<T>)

Determines if the list needs sorting based on given criteria.

UpdatePos(int, int, int, int, ref Point, bool)

Updates specified position by DeltaX and DeltaY values.

UpdatePos(int, int, int, int, ref int, ref int, bool)

Updates specified position by DeltaX and DeltaY values.