Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Array Class Referenceabstract

Classes

class  EmptyArray
 
struct  SorterGenericArray
 
struct  SorterObjectArray
 

Public Member Functions

int GetLength (int dimension)
 
int GetUpperBound (int dimension)
 
int GetLowerBound (int dimension)
 
void Initialize ()
 
object? GetValue (params int[] indices)
 
unsafe? object GetValue (int index)
 
object? GetValue (int index1, int index2)
 
object? GetValue (int index1, int index2, int index3)
 
unsafe void SetValue (object? value, int index)
 
void SetValue (object? value, int index1, int index2)
 
void SetValue (object? value, int index1, int index2, int index3)
 
void SetValue (object? value, params int[] indices)
 
object? GetValue (long index)
 
object? GetValue (long index1, long index2)
 
object? GetValue (long index1, long index2, long index3)
 
object? GetValue (params long[] indices)
 
void SetValue (object? value, long index)
 
void SetValue (object? value, long index1, long index2)
 
void SetValue (object? value, long index1, long index2, long index3)
 
void SetValue (object? value, params long[] indices)
 
long GetLongLength (int dimension)
 
object Clone ()
 
void CopyTo (Array array, int index)
 
void CopyTo (Array array, long index)
 
IEnumerator GetEnumerator ()
 
int IndexOf (T item)
 
void Insert (int index, T item)
 
void Add (T item)
 
bool Contains (T item)
 
void CopyTo (T[] array, int arrayIndex)
 
bool Remove (T item)
 
int CompareTo (object? other, IComparer comparer)
 
bool Equals (object? other, IEqualityComparer comparer)
 
int GetHashCode (IEqualityComparer comparer)
 

Static Public Member Functions

static unsafe Array CreateInstance (Type elementType, int length)
 
static unsafe Array CreateInstance (Type elementType, int length1, int length2)
 
static unsafe Array CreateInstance (Type elementType, int length1, int length2, int length3)
 
static unsafe Array CreateInstance (Type elementType, params int[] lengths)
 
static unsafe Array CreateInstance (Type elementType, int[] lengths, int[] lowerBounds)
 
static unsafe void Copy (Array sourceArray, Array destinationArray, int length)
 
static unsafe void Copy (Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length)
 
static void ConstrainedCopy (Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length)
 
static unsafe void Clear (Array array)
 
static unsafe void Clear (Array array, int index, int length)
 
static ReadOnlyCollection< TAsReadOnly< T > (T[] array)
 
static void Resize< T > ([NotNull] ref T[]? array, int newSize)
 
static Array CreateInstance (Type elementType, params long[] lengths)
 
static void Copy (Array sourceArray, Array destinationArray, long length)
 
static void Copy (Array sourceArray, long sourceIndex, Array destinationArray, long destinationIndex, long length)
 
static int BinarySearch (Array array, object? value)
 
static int BinarySearch (Array array, int index, int length, object? value)
 
static int BinarySearch (Array array, object? value, IComparer? comparer)
 
static int BinarySearch (Array array, int index, int length, object? value, IComparer? comparer)
 
static int BinarySearch< T > (T[] array, T value)
 
static int BinarySearch< T > (T[] array, T value, IComparer< T >? comparer)
 
static int BinarySearch< T > (T[] array, int index, int length, T value)
 
static int BinarySearch< T > (T[] array, int index, int length, T value, IComparer< T >? comparer)
 
static TOutput[] ConvertAll< TInput, TOutput > (TInput[] array, Converter< TInput, TOutput > converter)
 
static T[] Empty< T > ()
 
static bool Exists< T > (T[] array, Predicate< T > match)
 
static void Fill< T > (T[] array, T value)
 
static void Fill< T > (T[] array, T value, int startIndex, int count)
 
static ? T Find< T > (T[] array, Predicate< T > match)
 
static T[] FindAll< T > (T[] array, Predicate< T > match)
 
static int FindIndex< T > (T[] array, Predicate< T > match)
 
static int FindIndex< T > (T[] array, int startIndex, Predicate< T > match)
 
static int FindIndex< T > (T[] array, int startIndex, int count, Predicate< T > match)
 
static ? T FindLast< T > (T[] array, Predicate< T > match)
 
static int FindLastIndex< T > (T[] array, Predicate< T > match)
 
static int FindLastIndex< T > (T[] array, int startIndex, Predicate< T > match)
 
static int FindLastIndex< T > (T[] array, int startIndex, int count, Predicate< T > match)
 
static void ForEach< T > (T[] array, Action< T > action)
 
static int IndexOf (Array array, object? value)
 
static int IndexOf (Array array, object? value, int startIndex)
 
static int IndexOf (Array array, object? value, int startIndex, int count)
 
static int IndexOf< T > (T[] array, T value)
 
static int IndexOf< T > (T[] array, T value, int startIndex)
 
static int IndexOf< T > (T[] array, T value, int startIndex, int count)
 
static int LastIndexOf (Array array, object? value)
 
static int LastIndexOf (Array array, object? value, int startIndex)
 
static int LastIndexOf (Array array, object? value, int startIndex, int count)
 
static int LastIndexOf< T > (T[] array, T value)
 
static int LastIndexOf< T > (T[] array, T value, int startIndex)
 
static int LastIndexOf< T > (T[] array, T value, int startIndex, int count)
 
static void Reverse (Array array)
 
static void Reverse (Array array, int index, int length)
 
static void Reverse< T > (T[] array)
 
static void Reverse< T > (T[] array, int index, int length)
 
static void Sort (Array array)
 
static void Sort (Array keys, Array? items)
 
static void Sort (Array array, int index, int length)
 
static void Sort (Array keys, Array? items, int index, int length)
 
static void Sort (Array array, IComparer? comparer)
 
static void Sort (Array keys, Array? items, IComparer? comparer)
 
static void Sort (Array array, int index, int length, IComparer? comparer)
 
static void Sort (Array keys, Array? items, int index, int length, IComparer? comparer)
 
static void Sort< T > (T[] array)
 
static void Sort< TKey, TValue > (TKey[] keys, TValue[]? items)
 
static void Sort< T > (T[] array, int index, int length)
 
static void Sort< TKey, TValue > (TKey[] keys, TValue[]? items, int index, int length)
 
static void Sort< T > (T[] array, IComparer< T >? comparer)
 
static void Sort< TKey, TValue > (TKey[] keys, TValue[]? items, IComparer< TKey >? comparer)
 
static void Sort< T > (T[] array, int index, int length, IComparer< T >? comparer)
 
static void Sort< TKey, TValue > (TKey[] keys, TValue[]? items, int index, int length, IComparer< TKey >? comparer)
 
static void Sort< T > (T[] array, Comparison< T > comparison)
 
static bool TrueForAll< T > (T[] array, Predicate< T > match)
 

Protected Member Functions

 Array ()
 

Package Functions

object InternalGetValue (nint flattenedIndex)
 
CorElementType GetCorElementTypeOfElementType ()
 

Properties

int Length [get]
 
nuint NativeLength [get]
 
long LongLength [get]
 
int Rank [get]
 
int ICollection. Count [get]
 
object SyncRoot [get]
 
bool IsReadOnly [get]
 
bool IsFixedSize [get]
 
bool IsSynchronized [get]
 
object? IList. this[int index] [get, set]
 
static int MaxLength [get]
 

Private Member Functions

static unsafe Array InternalCreate (void *elementType, int rank, int *pLengths, int *pLowerBounds)
 
static bool IsSimpleCopy (Array sourceArray, Array destinationArray)
 
static void CopySlow (Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length)
 
unsafe nint GetFlattenedIndex (ReadOnlySpan< int > indices)
 
void InternalSetValue (object value, nint flattenedIndex)
 
unsafe bool IsValueOfElementType (object value)
 
int IList. Add (object value)
 
bool IList. Contains (object value)
 
void IList. Clear ()
 
int IList. IndexOf (object value)
 
void IList. Insert (int index, object value)
 
void IList. Remove (object value)
 
void IList. RemoveAt (int index)
 
int IStructuralComparable. CompareTo (object other, IComparer comparer)
 
bool IStructuralEquatable. Equals (object other, IEqualityComparer comparer)
 
int IStructuralEquatable. GetHashCode (IEqualityComparer comparer)
 

Static Private Member Functions

static unsafe void Copy (Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length, bool reliable)
 
static int GetMedian (int low, int hi)
 
static Span< TUnsafeArrayAsSpan< T > (Array array, int adjustedIndex, int length)
 

Detailed Description

Definition at line 15 of file Array.cs.


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