Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Exomia.Native.Collections

Daniel Baetz edited this page Jun 21, 2019 · 13 revisions

List2

a faster list for unmanaged types.

public class Exomia.Native.Collections.List2<T>

Constructors

.ctor List2`1()

Summary:

Initializes a new instance of the <see cref="List2<T>"/> class.


.ctor List2`1(Int32 capacity)

Summary:

Initializes a new instance of the <see cref="List2<T>"/> class.

Parameter:

  • capacity - The capacity.

.ctor List2`1(IEnumerable collection)

Summary:

Initializes a new instance of the <see cref="List2<T>"/> class.

Parameter:

  • collection - The collection.


Properties

Int32 Capacity

Summary:

Sets the capacity.


Int32 Count

Summary:

returns the current number of items in this list.


T Item

Summary:

returns the item at the specified index.

Parameter:

  • index - index.

T Item

Summary:

returns the item at the specified index.

Parameter:

  • index - index.


Methods

void Add(T& item)

Summary:

Adds item.

Parameter:

  • item - The in T to test for containment.

void Clear()

Summary:

Clears this object to its blank/initial state.


Boolean Contains(T& item)

Summary:

Query if this object contains the given item.

Parameter:

  • item - The in T to test for containment.

T& Get(Int32 index)

Summary:

Gets a reference t using the given index.

Parameter:

  • index - Zero-based index of the.

T& Get(UInt32 index)

Summary:

Gets a reference t using the given index.

Parameter:

  • index - Zero-based index of the.

List2 GetRange(Int32 index, Int32 count)

Summary:

Finds the range of the given arguments.

Parameter:

  • index - Zero-based index of the.
  • count - Returns the current number of items in this list.

Int32 IndexOf(T& item, Int32 startIndex, Int32 count)

Summary:

Searches for the first match.

Parameter:

  • item - The in T to test for containment.
  • startIndex - The start index.
  • count - Returns the current number of items in this list.

void Insert(Int32 index, T& item)

Summary:

Inserts.

Parameter:

  • index - Zero-based index of the.
  • item - The in T to test for containment.

Boolean Remove(T& item)

Summary:

Removes the given item.

Parameter:

  • item - The in T to test for containment.

void RemoveAt(Int32 index)

Summary:

Removes at described by index.

Parameter:

  • index - Zero-based index of the.

void RemoveRange(Int32 index, Int32 count)

Summary:

Removes the range.

Parameter:

  • index - Zero-based index of the.
  • count - Returns the current number of items in this list.

T[] ToArray()

Summary:

Convert this object into an array representation.


T[] ToArray(Int32 index)

Summary:

Convert this object into an array representation.

Parameter:

  • index - Zero-based index of the.

T[] ToArray(Int32 index, Int32 count)

Summary:

Convert this object into an array representation.

Parameter:

  • index - Zero-based index of the.
  • count - Returns the current number of items in this list.