List<T>

Overview

Location

Implements

 

constructor

 

constructor

 

List<T>()

 

init()

 

List<T>()

constructor (array of T)

 

constructor(aArray: array of T)

 

List<T>(T[] aArray)

 

init(_ aArray: T...)

 

List<T>(T[] aArray)

Parameters:

  • aArray:

constructor (NSArray<T>) iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

 

constructor(aArray: NSArray<T>)

 

List<T>(NSArray<T> aArray)

 

init(_ aArray: NSArray<T>)

 

List<T>(NSArray<T> aArray)

Parameters:

  • aArray:

constructor (IEnumerable<T>)

 

constructor(aSequence: IEnumerable<T>)

 

List<T>(IEnumerable<T> aSequence)

 

init(_ aSequence: IEnumerable<T>)

 

List<T>(IEnumerable<T> aSequence)

Parameters:

  • aSequence:

constructor (Int32)

 

constructor(aCapacity: Int32)

 

List<T>(Int32 aCapacity)

 

init(_ aCapacity: Int32)

 

List<T>(Int32 aCapacity)

Parameters:

  • aCapacity:

constructor (List<T>)

 

constructor(aItems: List<T>)

 

List<T>(List<T> aItems)

 

init(_ aItems: List<T>)

 

List<T>(List<T> aItems)

Parameters:

  • aItems:

Add (Object)

 

method Add(val: Object)

 

void Add(Object val)

 

func Add(_ val: Object)

 

void Add(Object val)

Parameters:

  • val:

Add (T)

 

method Add(anItem: T)

 

void Add(T anItem)

 

func Add(_ anItem: T)

 

void Add(T anItem)

Parameters:

  • anItem:

AddRange (array of T)

 

method AddRange(Items: array of T)

 

void AddRange(T[] Items)

 

func AddRange(_ Items: T...)

 

void AddRange(T[] Items)

Parameters:

  • Items:

AddRange (List<T>)

 

method AddRange(Items: List<T>)

 

void AddRange(List<T> Items)

 

func AddRange(_ Items: List<T>)

 

void AddRange(List<T> Items)

Parameters:

  • Items:

Capacity

 

property Capacity: Int32 read;

 

Int32 Capacity { get; }

 

var Capacity: Int32 { get{} }

 

Int32 Capacity { __get; }

Clear

 

method Clear

 

void Clear()

 

func Clear()

 

void Clear()

Contains (Object): Boolean

 

method Contains(val: Object): Boolean

 

Boolean Contains(Object val)

 

func Contains(_ val: Object) -> Boolean

 

Boolean Contains(Object val)

Parameters:

  • val:

Contains (T): Boolean

 

method Contains(anItem: T): Boolean

 

Boolean Contains(T anItem)

 

func Contains(_ anItem: T) -> Boolean

 

Boolean Contains(T anItem)

Parameters:

  • anItem:

CopyTo (array of T)

 

method CopyTo(array: array of T)

 

void CopyTo(T[] array)

 

func CopyTo(_ array: T...)

 

void CopyTo(T[] array)

Parameters:

  • array:

CopyTo (array of T, Int32)

 

method CopyTo(array: array of T; arrayIndex: Int32)

 

void CopyTo(T[] array, Int32 arrayIndex)

 

func CopyTo(_ array: T..., _ arrayIndex: Int32)

 

void CopyTo(T[] array, Int32 arrayIndex)

Parameters:

  • array:
  • arrayIndex:

CopyTo (Int32, array of T, Int32, Int32)

 

method CopyTo(index: Int32; array: array of T; arrayIndex: Int32; count: Int32)

 

void CopyTo(Int32 index, T[] array, Int32 arrayIndex, Int32 count)

 

func CopyTo(_ index: Int32, _ array: T..., _ arrayIndex: Int32, _ count: Int32)

 

void CopyTo(Int32 index, T[] array, Int32 arrayIndex, Int32 count)

Parameters:

  • index:
  • array:
  • arrayIndex:
  • count:

Count  virtual

 

property Count: Int32 read;

 

Int32 Count { get; }

 

var Count: Int32 { get{} }

 

Int32 Count { __get; }

Equals  virtual    (declared in Object)

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

Parameters:

  • obj: the reference to compare this with.

Exists

 

method Exists(Match: Predicate<T>): Boolean

 

Boolean Exists(Predicate<T> Match)

 

func Exists(_ Match: Predicate<T>) -> Boolean

 

Boolean Exists(Predicate<T> Match)

Parameters:

  • Match:

Finalize  protected virtual    (declared in Object)

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

Find

 

method Find(Match: Predicate<T>): T

 

T Find(Predicate<T> Match)

 

func Find(_ Match: Predicate<T>) -> T

 

T Find(Predicate<T> Match)

Parameters:

  • Match:

FindAll

 

method FindAll(Match: Predicate<T>): List<T>

 

List<T> FindAll(Predicate<T> Match)

 

func FindAll(_ Match: Predicate<T>) -> List<T>

 

List<T> FindAll(Predicate<T> Match)

Parameters:

  • Match:

FindIndex (Int32, Int32, Predicate<T>): Int32

 

method FindIndex(StartIndex: Int32; aCount: Int32; Match: Predicate<T>): Int32

 

Int32 FindIndex(Int32 StartIndex, Int32 aCount, Predicate<T> Match)

 

func FindIndex(_ StartIndex: Int32, _ aCount: Int32, _ Match: Predicate<T>) -> Int32

 

Int32 FindIndex(Int32 StartIndex, Int32 aCount, Predicate<T> Match)

Parameters:

  • StartIndex:
  • aCount:
  • Match:

FindIndex (Int32, Predicate<T>): Int32

 

method FindIndex(StartIndex: Int32; Match: Predicate<T>): Int32

 

Int32 FindIndex(Int32 StartIndex, Predicate<T> Match)

 

func FindIndex(_ StartIndex: Int32, _ Match: Predicate<T>) -> Int32

 

Int32 FindIndex(Int32 StartIndex, Predicate<T> Match)

Parameters:

  • StartIndex:
  • Match:

FindIndex (Predicate<T>): Int32

 

method FindIndex(Match: Predicate<T>): Int32

 

Int32 FindIndex(Predicate<T> Match)

 

func FindIndex(_ Match: Predicate<T>) -> Int32

 

Int32 FindIndex(Predicate<T> Match)

Parameters:

  • Match:

ForEach

 

method ForEach(Action: Action<T>)

 

void ForEach(Action<T> Action)

 

func ForEach(_ Action: Action<T>)

 

void ForEach(Action1<T> Action)

Parameters:

  • Action:

GetEnumerator

 

method GetEnumerator: IEnumerator<T>

 

IEnumerator<T> GetEnumerator()

 

func GetEnumerator() -> IEnumerator<T>

 

IEnumerator<T> GetEnumerator()

GetHashCode  virtual    (declared in Object)

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

IndexOf

 

method IndexOf(anItem: T): Int32

 

Int32 IndexOf(T anItem)

 

func IndexOf(_ anItem: T) -> Int32

 

Int32 IndexOf(T anItem)

Parameters:

  • anItem:

Insert

 

method Insert(Index: Int32; anItem: T)

 

void Insert(Int32 Index, T anItem)

 

func Insert(_ Index: Int32, _ anItem: T)

 

void Insert(Int32 Index, T anItem)

Parameters:

  • Index:
  • anItem:

InsertRange (Int32, array of T)

 

method InsertRange(Index: Int32; Items: array of T)

 

void InsertRange(Int32 Index, T[] Items)

 

func InsertRange(_ Index: Int32, _ Items: T...)

 

void InsertRange(Int32 Index, T[] Items)

Parameters:

  • Index:
  • Items:

InsertRange (Int32, List<T>)

 

method InsertRange(Index: Int32; Items: List<T>)

 

void InsertRange(Int32 Index, List<T> Items)

 

func InsertRange(_ Index: Int32, _ Items: List<T>)

 

void InsertRange(Int32 Index, List<T> Items)

Parameters:

  • Index:
  • Items:

Item  virtual

 

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; }

LastIndexOf

 

method LastIndexOf(anItem: T): Int32

 

Int32 LastIndexOf(T anItem)

 

func LastIndexOf(_ anItem: T) -> Int32

 

Int32 LastIndexOf(T anItem)

Parameters:

  • anItem:

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

Parameters:

  • a: left value
  • b: right value

Remove (Object): Boolean

 

method Remove(val: Object): Boolean

 

Boolean Remove(Object val)

 

func Remove(_ val: Object) -> Boolean

 

Boolean Remove(Object val)

Parameters:

  • val:

Remove (T): Boolean

 

method Remove(anItem: T): Boolean

 

Boolean Remove(T anItem)

 

func Remove(_ anItem: T) -> Boolean

 

Boolean Remove(T anItem)

Parameters:

  • anItem:

RemoveAt

 

method RemoveAt(Index: Int32)

 

void RemoveAt(Int32 Index)

 

func RemoveAt(_ Index: Int32)

 

void RemoveAt(Int32 Index)

Parameters:

  • Index:

RemoveRange

 

method RemoveRange(Index: Int32; aCount: Int32)

 

void RemoveRange(Int32 Index, Int32 aCount)

 

func RemoveRange(_ Index: Int32, _ aCount: Int32)

 

void RemoveRange(Int32 Index, Int32 aCount)

Parameters:

  • Index:
  • aCount:

Sort

 

method Sort(Comparison: Comparison<T>)

 

void Sort(Comparison<T> Comparison)

 

func Sort(_ Comparison: Comparison<T>)

 

void Sort(Comparison<T> Comparison)

Parameters:

  • Comparison:

ToArray

 

method ToArray: array of T

 

T[] ToArray()

 

func ToArray() -> T...

 

T[] ToArray()

ToNSArray iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

 

method ToNSArray: NSArray<T>

 

NSArray<T> ToNSArray()

 

func ToNSArray() -> NSArray<T>

 

NSArray<T> ToNSArray()

ToNSMutableArray iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

 

method ToNSMutableArray: NSMutableArray<T>

 

NSMutableArray<T> ToNSMutableArray()

 

func ToNSMutableArray() -> NSMutableArray<T>

 

NSMutableArray<T> ToNSMutableArray()

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

TrueForAll

 

method TrueForAll(Match: Predicate<T>): Boolean

 

Boolean TrueForAll(Predicate<T> Match)

 

func TrueForAll(_ Match: Predicate<T>) -> Boolean

 

Boolean TrueForAll(Predicate<T> Match)

Parameters:

  • Match:

 

Capacity

 

property Capacity: Int32 read;

 

Int32 Capacity { get; }

 

var Capacity: Int32 { get{} }

 

Int32 Capacity { __get; }

Count  virtual

 

property Count: Int32 read;

 

Int32 Count { get; }

 

var Count: Int32 { get{} }

 

Int32 Count { __get; }

Item  virtual

 

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; }

 

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

Parameters:

  • a: left value
  • b: right value

 

constructor

 

constructor

 

List<T>()

 

init()

 

List<T>()

constructor (array of T)

 

constructor(aArray: array of T)

 

List<T>(T[] aArray)

 

init(_ aArray: T...)

 

List<T>(T[] aArray)

Parameters:

  • aArray:

constructor (NSArray<T>) iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

 

constructor(aArray: NSArray<T>)

 

List<T>(NSArray<T> aArray)

 

init(_ aArray: NSArray<T>)

 

List<T>(NSArray<T> aArray)

Parameters:

  • aArray:

constructor (IEnumerable<T>)

 

constructor(aSequence: IEnumerable<T>)

 

List<T>(IEnumerable<T> aSequence)

 

init(_ aSequence: IEnumerable<T>)

 

List<T>(IEnumerable<T> aSequence)

Parameters:

  • aSequence:

constructor (Int32)

 

constructor(aCapacity: Int32)

 

List<T>(Int32 aCapacity)

 

init(_ aCapacity: Int32)

 

List<T>(Int32 aCapacity)

Parameters:

  • aCapacity:

constructor (List<T>)

 

constructor(aItems: List<T>)

 

List<T>(List<T> aItems)

 

init(_ aItems: List<T>)

 

List<T>(List<T> aItems)

Parameters:

  • aItems:

Add (Object)

 

method Add(val: Object)

 

void Add(Object val)

 

func Add(_ val: Object)

 

void Add(Object val)

Parameters:

  • val:

Add (T)

 

method Add(anItem: T)

 

void Add(T anItem)

 

func Add(_ anItem: T)

 

void Add(T anItem)

Parameters:

  • anItem:

AddRange (array of T)

 

method AddRange(Items: array of T)

 

void AddRange(T[] Items)

 

func AddRange(_ Items: T...)

 

void AddRange(T[] Items)

Parameters:

  • Items:

AddRange (List<T>)

 

method AddRange(Items: List<T>)

 

void AddRange(List<T> Items)

 

func AddRange(_ Items: List<T>)

 

void AddRange(List<T> Items)

Parameters:

  • Items:

Clear

 

method Clear

 

void Clear()

 

func Clear()

 

void Clear()

Contains (Object): Boolean

 

method Contains(val: Object): Boolean

 

Boolean Contains(Object val)

 

func Contains(_ val: Object) -> Boolean

 

Boolean Contains(Object val)

Parameters:

  • val:

Contains (T): Boolean

 

method Contains(anItem: T): Boolean

 

Boolean Contains(T anItem)

 

func Contains(_ anItem: T) -> Boolean

 

Boolean Contains(T anItem)

Parameters:

  • anItem:

CopyTo (array of T)

 

method CopyTo(array: array of T)

 

void CopyTo(T[] array)

 

func CopyTo(_ array: T...)

 

void CopyTo(T[] array)

Parameters:

  • array:

CopyTo (array of T, Int32)

 

method CopyTo(array: array of T; arrayIndex: Int32)

 

void CopyTo(T[] array, Int32 arrayIndex)

 

func CopyTo(_ array: T..., _ arrayIndex: Int32)

 

void CopyTo(T[] array, Int32 arrayIndex)

Parameters:

  • array:
  • arrayIndex:

CopyTo (Int32, array of T, Int32, Int32)

 

method CopyTo(index: Int32; array: array of T; arrayIndex: Int32; count: Int32)

 

void CopyTo(Int32 index, T[] array, Int32 arrayIndex, Int32 count)

 

func CopyTo(_ index: Int32, _ array: T..., _ arrayIndex: Int32, _ count: Int32)

 

void CopyTo(Int32 index, T[] array, Int32 arrayIndex, Int32 count)

Parameters:

  • index:
  • array:
  • arrayIndex:
  • count:

Equals  virtual    (declared in Object)

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

Parameters:

  • obj: the reference to compare this with.

Exists

 

method Exists(Match: Predicate<T>): Boolean

 

Boolean Exists(Predicate<T> Match)

 

func Exists(_ Match: Predicate<T>) -> Boolean

 

Boolean Exists(Predicate<T> Match)

Parameters:

  • Match:

Finalize  protected virtual    (declared in Object)

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

Find

 

method Find(Match: Predicate<T>): T

 

T Find(Predicate<T> Match)

 

func Find(_ Match: Predicate<T>) -> T

 

T Find(Predicate<T> Match)

Parameters:

  • Match:

FindAll

 

method FindAll(Match: Predicate<T>): List<T>

 

List<T> FindAll(Predicate<T> Match)

 

func FindAll(_ Match: Predicate<T>) -> List<T>

 

List<T> FindAll(Predicate<T> Match)

Parameters:

  • Match:

FindIndex (Int32, Int32, Predicate<T>): Int32

 

method FindIndex(StartIndex: Int32; aCount: Int32; Match: Predicate<T>): Int32

 

Int32 FindIndex(Int32 StartIndex, Int32 aCount, Predicate<T> Match)

 

func FindIndex(_ StartIndex: Int32, _ aCount: Int32, _ Match: Predicate<T>) -> Int32

 

Int32 FindIndex(Int32 StartIndex, Int32 aCount, Predicate<T> Match)

Parameters:

  • StartIndex:
  • aCount:
  • Match:

FindIndex (Int32, Predicate<T>): Int32

 

method FindIndex(StartIndex: Int32; Match: Predicate<T>): Int32

 

Int32 FindIndex(Int32 StartIndex, Predicate<T> Match)

 

func FindIndex(_ StartIndex: Int32, _ Match: Predicate<T>) -> Int32

 

Int32 FindIndex(Int32 StartIndex, Predicate<T> Match)

Parameters:

  • StartIndex:
  • Match:

FindIndex (Predicate<T>): Int32

 

method FindIndex(Match: Predicate<T>): Int32

 

Int32 FindIndex(Predicate<T> Match)

 

func FindIndex(_ Match: Predicate<T>) -> Int32

 

Int32 FindIndex(Predicate<T> Match)

Parameters:

  • Match:

ForEach

 

method ForEach(Action: Action<T>)

 

void ForEach(Action<T> Action)

 

func ForEach(_ Action: Action<T>)

 

void ForEach(Action1<T> Action)

Parameters:

  • Action:

GetEnumerator

 

method GetEnumerator: IEnumerator<T>

 

IEnumerator<T> GetEnumerator()

 

func GetEnumerator() -> IEnumerator<T>

 

IEnumerator<T> GetEnumerator()

GetHashCode  virtual    (declared in Object)

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

IndexOf

 

method IndexOf(anItem: T): Int32

 

Int32 IndexOf(T anItem)

 

func IndexOf(_ anItem: T) -> Int32

 

Int32 IndexOf(T anItem)

Parameters:

  • anItem:

Insert

 

method Insert(Index: Int32; anItem: T)

 

void Insert(Int32 Index, T anItem)

 

func Insert(_ Index: Int32, _ anItem: T)

 

void Insert(Int32 Index, T anItem)

Parameters:

  • Index:
  • anItem:

InsertRange (Int32, array of T)

 

method InsertRange(Index: Int32; Items: array of T)

 

void InsertRange(Int32 Index, T[] Items)

 

func InsertRange(_ Index: Int32, _ Items: T...)

 

void InsertRange(Int32 Index, T[] Items)

Parameters:

  • Index:
  • Items:

InsertRange (Int32, List<T>)

 

method InsertRange(Index: Int32; Items: List<T>)

 

void InsertRange(Int32 Index, List<T> Items)

 

func InsertRange(_ Index: Int32, _ Items: List<T>)

 

void InsertRange(Int32 Index, List<T> Items)

Parameters:

  • Index:
  • Items:

LastIndexOf

 

method LastIndexOf(anItem: T): Int32

 

Int32 LastIndexOf(T anItem)

 

func LastIndexOf(_ anItem: T) -> Int32

 

Int32 LastIndexOf(T anItem)

Parameters:

  • anItem:

Remove (Object): Boolean

 

method Remove(val: Object): Boolean

 

Boolean Remove(Object val)

 

func Remove(_ val: Object) -> Boolean

 

Boolean Remove(Object val)

Parameters:

  • val:

Remove (T): Boolean

 

method Remove(anItem: T): Boolean

 

Boolean Remove(T anItem)

 

func Remove(_ anItem: T) -> Boolean

 

Boolean Remove(T anItem)

Parameters:

  • anItem:

RemoveAt

 

method RemoveAt(Index: Int32)

 

void RemoveAt(Int32 Index)

 

func RemoveAt(_ Index: Int32)

 

void RemoveAt(Int32 Index)

Parameters:

  • Index:

RemoveRange

 

method RemoveRange(Index: Int32; aCount: Int32)

 

void RemoveRange(Int32 Index, Int32 aCount)

 

func RemoveRange(_ Index: Int32, _ aCount: Int32)

 

void RemoveRange(Int32 Index, Int32 aCount)

Parameters:

  • Index:
  • aCount:

Sort

 

method Sort(Comparison: Comparison<T>)

 

void Sort(Comparison<T> Comparison)

 

func Sort(_ Comparison: Comparison<T>)

 

void Sort(Comparison<T> Comparison)

Parameters:

  • Comparison:

ToArray

 

method ToArray: array of T

 

T[] ToArray()

 

func ToArray() -> T...

 

T[] ToArray()

ToNSArray iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

 

method ToNSArray: NSArray<T>

 

NSArray<T> ToNSArray()

 

func ToNSArray() -> NSArray<T>

 

NSArray<T> ToNSArray()

ToNSMutableArray iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

 

method ToNSMutableArray: NSMutableArray<T>

 

NSMutableArray<T> ToNSMutableArray()

 

func ToNSMutableArray() -> NSMutableArray<T>

 

NSMutableArray<T> ToNSMutableArray()

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

TrueForAll

 

method TrueForAll(Match: Predicate<T>): Boolean

 

Boolean TrueForAll(Predicate<T> Match)

 

func TrueForAll(_ Match: Predicate<T>) -> Boolean

 

Boolean TrueForAll(Predicate<T> Match)

Parameters:

  • Match: