Struct FastListStruct<T>
- Namespace
- Stride.Core.Collections
- Assembly
- Stride.Core.dll
public struct FastListStruct<T> : IEnumerable<T>, IEnumerableType Parameters
- T
- Implements
- 
      IEnumerable<T>
- Inherited Members
- Extension Methods
Constructors
FastListStruct(FastList<T>)
public FastListStruct(FastList<T> fastList)Parameters
- fastListFastList<T>
FastListStruct(int)
public FastListStruct(int capacity)Parameters
- capacityint
FastListStruct(T[])
public FastListStruct(T[] array)Parameters
- arrayT[]
Fields
Count
public int CountField Value
Items
Gets the items.
public T[] ItemsField Value
- T[]
Properties
this[int]
public readonly T this[int index] { get; set; }Parameters
- indexint
Property Value
- T
Methods
Add(T)
public void Add(T item)Parameters
- itemT
AddRange(FastListStruct<T>)
public void AddRange(FastListStruct<T> items)Parameters
- itemsFastListStruct<T>
Clear()
public void Clear()Contains(T)
public readonly bool Contains(T item)Parameters
- itemT
Returns
EnsureCapacity(int)
public void EnsureCapacity(int newCapacity)Parameters
- newCapacityint
GetEnumerator()
public readonly FastListStruct<T>.Enumerator GetEnumerator()Returns
IndexOf(T)
public readonly int IndexOf(T item)Parameters
- itemT
Returns
Insert(int, T)
public void Insert(int index, T item)Parameters
- indexint
- itemT
Remove(T)
public bool Remove(T item)Parameters
- itemT
Returns
RemoveAt(int)
public void RemoveAt(int index)Parameters
- indexint
SwapRemoveAt(int)
Remove an item by swapping it with the last item and removing it from the last position. This function prevents to shift values from the list on removal but does not maintain order.
public void SwapRemoveAt(int index)Parameters
- indexint
- Index of the item to remove. 
ToArray()
public readonly T[] ToArray()Returns
- T[]
Operators
implicit operator FastListStruct<T>(FastList<T>)
public static implicit operator FastListStruct<T>(FastList<T> fastList)Parameters
- fastListFastList<T>
Returns
implicit operator FastListStruct<T>(T[])
public static implicit operator FastListStruct<T>(T[] array)Parameters
- arrayT[]