IList

Overview

List interface.

Location


Properties


Item

Access a value by index.

 

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

 

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

 

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

 

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

 

Property Item(i As Int32) As Object

Required Methods


Add

 

method Add(val: Object)

 

void Add(Object val)

 

func Add(_ val: Object)

 

void Add(Object val)

 

Sub Add(val As Object)

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: Object): Boolean

 

Boolean Contains(Object val)

 

func Contains(_ val: Object) -> Boolean

 

Boolean Contains(Object val)

 

Function Contains(val As Object) As Boolean

Parameters:

  • val:

Remove

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

 

method Remove(val: Object): Boolean

 

Boolean Remove(Object val)

 

func Remove(_ val: Object) -> Boolean

 

Boolean Remove(Object val)

 

Function Remove(val As Object) As Boolean

Parameters:

  • val: