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

Classes

class  Builder
 
struct  Enumerator
 
class  EnumeratorObject
 

Public Member Functions

ReadOnlySpan< TAsSpan ()
 
ReadOnlyMemory< TAsMemory ()
 
int IndexOf (T item)
 
int IndexOf (T item, int startIndex, IEqualityComparer< T >? equalityComparer)
 
int IndexOf (T item, int startIndex)
 
int IndexOf (T item, int startIndex, int count)
 
int IndexOf (T item, int startIndex, int count, IEqualityComparer< T >? equalityComparer)
 
int LastIndexOf (T item)
 
int LastIndexOf (T item, int startIndex)
 
int LastIndexOf (T item, int startIndex, int count)
 
int LastIndexOf (T item, int startIndex, int count, IEqualityComparer< T >? equalityComparer)
 
bool Contains (T item)
 
ImmutableArray< TInsert (int index, T item)
 
ImmutableArray< TInsertRange (int index, IEnumerable< T > items)
 
ImmutableArray< TInsertRange (int index, ImmutableArray< T > items)
 
ImmutableArray< TAdd (T item)
 
ImmutableArray< TAddRange (IEnumerable< T > items)
 
ImmutableArray< TAddRange (ImmutableArray< T > items)
 
ImmutableArray< TSetItem (int index, T item)
 
ImmutableArray< TReplace (T oldValue, T newValue)
 
ImmutableArray< TReplace (T oldValue, T newValue, IEqualityComparer< T >? equalityComparer)
 
ImmutableArray< TRemove (T item)
 
ImmutableArray< TRemove (T item, IEqualityComparer< T >? equalityComparer)
 
ImmutableArray< TRemoveAt (int index)
 
ImmutableArray< TRemoveRange (int index, int length)
 
ImmutableArray< TRemoveRange (IEnumerable< T > items)
 
ImmutableArray< TRemoveRange (IEnumerable< T > items, IEqualityComparer< T >? equalityComparer)
 
ImmutableArray< TRemoveRange (ImmutableArray< T > items)
 
ImmutableArray< TRemoveRange (ImmutableArray< T > items, IEqualityComparer< T >? equalityComparer)
 
ImmutableArray< TRemoveAll (Predicate< T > match)
 
ImmutableArray< TClear ()
 
ImmutableArray< TSort ()
 
ImmutableArray< TSort (Comparison< T > comparison)
 
ImmutableArray< TSort (IComparer< T >? comparer)
 
ImmutableArray< TSort (int index, int count, IComparer< T >? comparer)
 
IEnumerable< TResultOfType< TResult > ()
 
void IList< T >. Insert (int index, T item)
 
void IList< T >. RemoveAt (int index)
 
void ICollection< T >. Add (T item)
 
void ICollection< T >. Clear ()
 
bool ICollection< T >. Remove (T item)
 
IImmutableList< T > IImmutableList< T >. Clear ()
 
IImmutableList< T > IImmutableList< T >. Add (T value)
 
IImmutableList< T > IImmutableList< T >. AddRange (IEnumerable< T > items)
 
IImmutableList< T > IImmutableList< T >. Insert (int index, T element)
 
IImmutableList< T > IImmutableList< T >. InsertRange (int index, IEnumerable< T > items)
 
IImmutableList< T > IImmutableList< T >. Remove (T value, IEqualityComparer< T > equalityComparer)
 
IImmutableList< T > IImmutableList< T >. RemoveAll (Predicate< T > match)
 
IImmutableList< T > IImmutableList< T >. RemoveRange (IEnumerable< T > items, IEqualityComparer< T > equalityComparer)
 
IImmutableList< T > IImmutableList< T >. RemoveRange (int index, int count)
 
IImmutableList< T > IImmutableList< T >. RemoveAt (int index)
 
IImmutableList< T > IImmutableList< T >. SetItem (int index, T value)
 
IImmutableList< T > IImmutableList< T >. Replace (T oldValue, T newValue, IEqualityComparer< T > equalityComparer)
 
int IList. Add (object value)
 
void IList. Clear ()
 
bool IList. Contains (object value)
 
int IList. IndexOf (object value)
 
void IList. Insert (int index, object value)
 
void IList. Remove (object value)
 
void IList. RemoveAt (int index)
 
void ICollection. CopyTo (Array array, int index)
 
bool IStructuralEquatable. Equals (object other, IEqualityComparer comparer)
 
int IStructuralEquatable. GetHashCode (IEqualityComparer comparer)
 
int IStructuralComparable. CompareTo (object other, IComparer comparer)
 
ref readonly T ItemRef (int index)
 
void CopyTo (T[] destination)
 
void CopyTo (T[] destination, int destinationIndex)
 
void CopyTo (int sourceIndex, T[] destination, int destinationIndex, int length)
 
ImmutableArray< T >.Builder ToBuilder ()
 
Enumerator GetEnumerator ()
 
override int GetHashCode ()
 
override bool Equals ([NotNullWhen(true)] object? obj)
 
bool Equals (ImmutableArray< T > other)
 
ImmutableArray< TOtherCastArray< TOther > ()
 
ImmutableArray< TOtherAs< TOther > ()
 
IEnumerator< T > IEnumerable< T >. GetEnumerator ()
 
IEnumerator IEnumerable. GetEnumerator ()
 
int Add (object? value)
 
bool Contains (object? value)
 
int IndexOf (object? value)
 
void Insert (int index, object? value)
 
void Remove (object? value)
 
bool Equals (T? other)
 
int Add (object? value)
 
bool Contains (object? value)
 
int IndexOf (object? value)
 
void Insert (int index, object? value)
 
void Remove (object? value)
 
int CompareTo (object? other, IComparer comparer)
 
bool Equals (object? other, IEqualityComparer comparer)
 

Static Public Member Functions

static ImmutableArray< TCreate< T > ()
 
static ImmutableArray< TCreate< T > (T item)
 
static ImmutableArray< TCreate< T > (T item1, T item2)
 
static ImmutableArray< TCreate< T > (T item1, T item2, T item3)
 
static ImmutableArray< TCreate< T > (T item1, T item2, T item3, T item4)
 
static ImmutableArray< TCreateRange< T > (IEnumerable< T > items)
 
static ImmutableArray< TCreate< T > (params T[]? items)
 
static ImmutableArray< TCreate< T > (T[] items, int start, int length)
 
static ImmutableArray< TCreate< T > (ImmutableArray< T > items, int start, int length)
 
static ImmutableArray< TResultCreateRange< TSource, TResult > (ImmutableArray< TSource > items, Func< TSource, TResult > selector)
 
static ImmutableArray< TResultCreateRange< TSource, TResult > (ImmutableArray< TSource > items, int start, int length, Func< TSource, TResult > selector)
 
static ImmutableArray< TResultCreateRange< TSource, TArg, TResult > (ImmutableArray< TSource > items, Func< TSource, TArg, TResult > selector, TArg arg)
 
static ImmutableArray< TResultCreateRange< TSource, TArg, TResult > (ImmutableArray< TSource > items, int start, int length, Func< TSource, TArg, TResult > selector, TArg arg)
 
static ImmutableArray< T >.Builder CreateBuilder< T > ()
 
static ImmutableArray< T >.Builder CreateBuilder< T > (int initialCapacity)
 
static ImmutableArray< TSource > ToImmutableArray< TSource > (this IEnumerable< TSource > items)
 
static ImmutableArray< TSource > ToImmutableArray< TSource > (this ImmutableArray< TSource >.Builder builder)
 
static int BinarySearch< T > (this ImmutableArray< T > array, T value)
 
static int BinarySearch< T > (this ImmutableArray< T > array, T value, IComparer< T >? comparer)
 
static int BinarySearch< T > (this ImmutableArray< T > array, int index, int length, T value)
 
static int BinarySearch< T > (this ImmutableArray< T > array, int index, int length, T value, IComparer< T >? comparer)
 
static bool operator== (ImmutableArray< T > left, ImmutableArray< T > right)
 
static bool operator!= (ImmutableArray< T > left, ImmutableArray< T > right)
 
static bool operator== (ImmutableArray< T >? left, ImmutableArray< T >? right)
 
static bool operator!= (ImmutableArray< T >? left, ImmutableArray< T >? right)
 
static ImmutableArray< TCastUp< TDerived > (ImmutableArray< TDerived > items)
 

Static Public Attributes

static readonly ImmutableArray< TEmpty = new ImmutableArray<T>(new T[0])
 

Package Functions

 ImmutableArray (T[]? items)
 
void ThrowNullRefIfNotInitialized ()
 

Package Attributes

readonly? T[] array
 

Static Package Attributes

static readonly byte[] TwoElementArray = new byte[2]
 

Properties

T IList< T >. this[int index] [get, set]
 
bool ICollection< T >. IsReadOnly [get]
 
int ICollection< T >. Count [get]
 
int IReadOnlyCollection< T >. Count [get]
 
T IReadOnlyList< T >. this[int index] [get]
 
bool IList. IsFixedSize [get]
 
bool IList. IsReadOnly [get]
 
int ICollection. Count [get]
 
bool ICollection. IsSynchronized [get]
 
object ICollection. SyncRoot [get]
 
object? IList. this[int index] [get, set]
 
T this[int index] [get]
 
bool IsEmpty [get]
 
int Length [get]
 
bool IsDefault [get]
 
bool IsDefaultOrEmpty [get]
 
Array? IImmutableArray. Array [get]
 
string DebuggerDisplay [get]
 

Private Member Functions

ImmutableArray< TRemoveAtRange (ICollection< int > indicesToRemove)
 
void ThrowInvalidOperationIfNotInitialized ()
 

Detailed Description

Definition at line 222 of file ImmutableArray.cs.


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