Reference IList<T>
Declared in Codebot.Collections.pas on line 254
IList<T> is a reference counted list of objects or interfaces
IList<T> = interface(IEnumerable<T>)
public
{ Remove all items from the list }
procedure Clear;
{ Delete an item by index }
procedure Delete(Index: Integer);
{ Sort the list using a comparer }
procedure Sort(Compare: TCompare<T>);
{ Exchange positions of two items in the list }
procedure Exchange(Index1, Index2: Integer);
{ The first item in the list }
function First: T;
{ Return the first item for which FindProc returns true }
function Find(FindProc: TFindProc<T>; var Match): T;
{ Returns the index of the item or -1 if it cannot be found }
function IndexOf(Item: T): Integer;
{ Add an item returning its index }
function Add(Item: T): Integer;
{ The last item in the list }
function Last: T;
{ Remove an item returning the index it had or -1 if it was not found }
function Remove(Item: T): Integer;
{ Address of the first item }
function Data: Pointer;
{ Allocated space in terms of number of items }
property Capacity: Integer read GetCapacity write SetCapacity;
{ Number of items in the list }
property Count: Integer read GetCount;
{ Get or set an item in the list }
property Items[Index: Integer]: T read Get write Put; default;
end;See also
TCompare<T> in Codebot.System.pas