IList<T>

Overview

Generic list interface.

Location


Properties


Item

Access a value by index.

 

property Item[i: Int32]: T read write;

 

T Item[Int32 i] { get; set; }

 

subscript Item(_ i: Int32) -> T { get{} set{} }

 

T Item[Int32 i] { __get; __set; }

 

Property Item(i As Int32) As T

Required Methods


Add

 

method Add(val: T)

 

void Add(T val)

 

func Add(_ val: T)

 

void Add(T val)

 

Sub Add(val As T)

Parameters:

  • val:

Clear

 

method Clear

 

void Clear()

 

func Clear()

 

void Clear()

 

Sub Clear()

Contains

returns true if this list contains this value.

 

method Contains(val: T): Boolean

 

Boolean Contains(T val)

 

func Contains(_ val: T) -> Boolean

 

Boolean Contains(T val)

 

Function Contains(val As T) As Boolean

Parameters:

  • val:

Remove

removes an item from list, implementations that don't support this should throw.

 

method Remove(val: T): Boolean

 

Boolean Remove(T val)

 

func Remove(_ val: T) -> Boolean

 

Boolean Remove(T val)

 

Function Remove(val As T) As Boolean

Parameters:

  • val: