Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Collections.Generic.List< T > Class Template Reference

Classes

struct  Enumerator
 

Public Member Functions

 List ()
 
 List (int capacity)
 
 List (IEnumerable< T > collection)
 
void Add (T item)
 
void AddRange (IEnumerable< T > collection)
 
ReadOnlyCollection< TAsReadOnly ()
 
int BinarySearch (int index, int count, T item, IComparer< T >? comparer)
 
int BinarySearch (T item)
 
int BinarySearch (T item, IComparer< T >? comparer)
 
void Clear ()
 
bool Contains (T item)
 
List< TOutput > ConvertAll< TOutput > (Converter< T, TOutput > converter)
 
void CopyTo (T[] array)
 
void CopyTo (int index, T[] array, int arrayIndex, int count)
 
void CopyTo (T[] array, int arrayIndex)
 
int EnsureCapacity (int capacity)
 
bool Exists (Predicate< T > match)
 
TFind (Predicate< T > match)
 
List< TFindAll (Predicate< T > match)
 
int FindIndex (Predicate< T > match)
 
int FindIndex (int startIndex, Predicate< T > match)
 
int FindIndex (int startIndex, int count, Predicate< T > match)
 
TFindLast (Predicate< T > match)
 
int FindLastIndex (Predicate< T > match)
 
int FindLastIndex (int startIndex, Predicate< T > match)
 
int FindLastIndex (int startIndex, int count, Predicate< T > match)
 
void ForEach (Action< T > action)
 
Enumerator GetEnumerator ()
 
List< TGetRange (int index, int count)
 
int IndexOf (T item)
 
int IndexOf (T item, int index)
 
int IndexOf (T item, int index, int count)
 
void Insert (int index, T item)
 
void InsertRange (int index, IEnumerable< T > collection)
 
int LastIndexOf (T item)
 
int LastIndexOf (T item, int index)
 
int LastIndexOf (T item, int index, int count)
 
bool Remove (T item)
 
int RemoveAll (Predicate< T > match)
 
void RemoveAt (int index)
 
void RemoveRange (int index, int count)
 
void Reverse ()
 
void Reverse (int index, int count)
 
void Sort ()
 
void Sort (IComparer< T >? comparer)
 
void Sort (int index, int count, IComparer< T >? comparer)
 
void Sort (Comparison< T > comparison)
 
T[] ToArray ()
 
void TrimExcess ()
 
bool TrueForAll (Predicate< T > match)
 

Package Attributes

T[] _items
 
int _size
 

Properties

int Capacity [get, set]
 
int Count [get]
 
bool IList. IsFixedSize [get]
 
bool ICollection< T >. IsReadOnly [get]
 
bool IList. IsReadOnly [get]
 
bool ICollection. IsSynchronized [get]
 
object ICollection. SyncRoot [get]
 
T this[int index] [get, set]
 
object? IList. this[int index] [get, set]
 

Private Member Functions

void AddWithResize (T item)
 
int IList. Add (object item)
 
bool IList. Contains (object item)
 
void ICollection. CopyTo (Array array, int arrayIndex)
 
void Grow (int capacity)
 
IEnumerator< T > IEnumerable< T >. GetEnumerator ()
 
IEnumerator IEnumerable. GetEnumerator ()
 
int IList. IndexOf (object item)
 
void IList. Insert (int index, object item)
 
void IList. Remove (object item)
 

Static Private Member Functions

static bool IsCompatibleObject (object value)
 

Private Attributes

int _version
 

Static Private Attributes

static readonly T[] s_emptyArray = new T[0]
 

Detailed Description

Definition at line 11 of file List.cs.


The documentation for this class was generated from the following file: