Version 3.0.0.2

ImmutableList<T> class

Namespace: Sirenix.Utilities
Assembly: Sirenix.Utilities
public sealed class ImmutableList<T> : IImmutableList<T>, IImmutableList, IList, ICollection, IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable
Inheritance
  • System.Object
  • ImmutableList<T>

Type Parameters

T

Constructors

ImmutableList(IList<T>)
public ImmutableList(IList<T> innerList)
Parameters
System.Collections.Generic.IList<T> innerList

Properties

Count
public int Count { get; }
IsReadOnly
public bool IsReadOnly { get; }
Item[Int32]
public T this[int index] { get; }
Parameters
System.Int32 index

Methods

Contains(T)
public bool Contains(T item)
Parameters
T item

Returns
System.Boolean

CopyTo(T[], Int32)
public void CopyTo(T[] array, int arrayIndex)
Parameters
T[] array

System.Int32 arrayIndex

GetEnumerator()
public IEnumerator<T> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<T>

IndexOf(T)
public int IndexOf(T item)
Parameters
T item

Returns
System.Int32

Extension Methods