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<T>

a faster list for unmanaged types.

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

Constructors

Type Name Summary
.ctor List2`1() Initializes a new instance of the <see cref="List2<T>"/> class.
.ctor List21(Int32` capacity) Initializes a new instance of the <see cref="List2<T>"/> class.
.ctor List21(IEnumerable` collection) Initializes a new instance of the <see cref="List2<T>"/> class.

Properties

Type Name Summary
Int32 Capacity Sets the capacity.
Int32 Count returns the current number of items in this list.
T
Item
Parameter:
  • index - index.
returns the item at the specified index.
T
Item
Parameter:
  • index - index.
returns the item at the specified index.

Methods

Type Name Summary
void
Add(T& item)
Parameter:
  • item - The in T to test for containment.
Adds item.
void Clear() Clears this object to its blank/initial state.
Boolean
Contains(T& item)
Parameter:
  • item - The in T to test for containment.
Query if this object contains the given item.
T&
Get(Int32 index)
Parameter:
  • index - Zero-based index of the.
Gets a reference t using the given index.
T&
Get(UInt32 index)
Parameter:
  • index - Zero-based index of the.
Gets a reference t using the given index.
List2<T>
GetRange(Int32 index, Int32 count)
Parameters:
  • index - Zero-based index of the.
  • count - Returns the current number of items in this list.
Finds the range of the given arguments.
Int32
IndexOf(T& item, Int32 startIndex, Int32 count)
Parameters:
  • item - The in T to test for containment.
  • startIndex - The start index.
  • count - Returns the current number of items in this list.
Searches for the first match.
void
Insert(Int32 index, T& item)
Parameters:
  • index - Zero-based index of the.
  • item - The in T to test for containment.
Inserts.
Boolean
Remove(T& item)
Parameter:
  • item - The in T to test for containment.
Removes the given item.
void
RemoveAt(Int32 index)
Parameter:
  • index - Zero-based index of the.
Removes at described by index.
void
RemoveRange(Int32 index, Int32 count)
Parameters:
  • index - Zero-based index of the.
  • count - Returns the current number of items in this list.
Removes the range.
T[] ToArray() Convert this object into an array representation.
T[] ToArray(Int32 index) Convert this object into an array representation.
T[] ToArray(Int32 index, Int32 count) Convert this object into an array representation.