Immutable list wraps another list, and allows for reading the inner list, without the ability to change it.

namespace Sirenix.Utilities
public sealed class ImmutableList : IImmutableList<Object>, IList<Object>, ICollection<Object>, IEnumerable<Object>


Namespace: Sirenix.Utilities
Assembly: Sirenix.OdinInspector


Definition Description
ImmutableList(IList) Creates an immutable list around another list.


Return Type Definition Description
int Count Number of items in the list.
bool IsFixedSize Immutable list cannot be changed directly, so it's size is always fixed.
bool IsReadOnly Immutable list are always readonly.
bool IsSynchronized Returns true if the inner list is synchronized.
Object Item Index accessor.
Object SyncRoot Gets the sync root object.


Return Type Definition Description
bool Contains(Object) Returns true if the item is contained in the list.
void CopyTo(Array, int) Copy the list to an array,
void CopyTo(Object[], int) Copy the list to an array,
IEnumerator GetEnumerator() Gets an enumerator.
int IndexOf(Object) Get the index of a value.