CopyOnWriteList<T> Class

Namespace
Microsoft.AspNetCore.Mvc.Internal
Assemblies
  • Microsoft.AspNetCore.Mvc.Core

Syntax

public class CopyOnWriteList<T> : IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable
class Microsoft.AspNetCore.Mvc.Internal.CopyOnWriteList<T>

Constructors

CopyOnWriteList(System.Collections.Generic.IReadOnlyList<T>)
public CopyOnWriteList(IReadOnlyList<T> source)

Methods

Add(T)
public void Add(T item)
Clear()
public void Clear()
Contains(T)
Return type:System.Boolean
public bool Contains(T item)
CopyTo(T[], System.Int32)
public void CopyTo(T[] array, int arrayIndex)
GetEnumerator()
Return type:System.Collections.Generic.IEnumerator<T>
public IEnumerator<T> GetEnumerator()
IndexOf(T)
Return type:System.Int32
public int IndexOf(T item)
Insert(System.Int32, T)
public void Insert(int index, T item)
Remove(T)
Return type:System.Boolean
public bool Remove(T item)
RemoveAt(System.Int32)
public void RemoveAt(int index)
GetEnumerator()
Return type:System.Collections.IEnumerator
IEnumerator IEnumerable.GetEnumerator()

Properties

Microsoft.AspNetCore.Mvc.Internal.CopyOnWriteList<T>.Count
Return type:System.Int32
public int Count { get; }
Microsoft.AspNetCore.Mvc.Internal.CopyOnWriteList<T>.IsReadOnly
Return type:System.Boolean
public bool IsReadOnly { get; }
Microsoft.AspNetCore.Mvc.Internal.CopyOnWriteList<T>.Item[System.Int32]
Return type:T
public T this[int index] { get; set; }
Microsoft.AspNetCore.Mvc.Internal.CopyOnWriteList<T>.Readable
Return type:System.Collections.Generic.IReadOnlyList<T>
protected IReadOnlyList<T> Readable { get; }
Microsoft.AspNetCore.Mvc.Internal.CopyOnWriteList<T>.Writable
Return type:System.Collections.Generic.List<T>
protected List<T> Writable { get; }