ImmutableList

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

namespace Sirenix.Utilities
{
[DefaultMemberAttribute("Item")]
public sealed class ImmutableList : IImmutableList<Object>, IList<Object>, ICollection<Object>, IEnumerable<Object>
}

Requirements

Namespace: Sirenix.Utilities
Assembly: Sirenix.OdinInspector
Version: 2.0.0.0

Constructors

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

Properties

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.

Methods

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.