Version 3.0.0.2

ImmutableList<TList, TElement> class

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

Type Parameters

TList

TElement

Constructors

ImmutableList(TList)
public ImmutableList(TList innerList)
Parameters
TList innerList

Properties

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

Methods

Contains(TElement)
public bool Contains(TElement item)
Parameters
TElement item

Returns
System.Boolean

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

System.Int32 arrayIndex

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

IndexOf(TElement)
public int IndexOf(TElement item)
Parameters
TElement item

Returns
System.Int32

Extension Methods