AppendOnlyCollection<T> Class

public sealed class AppendOnlyCollection<T> : ICollection<T>, IEnumerable<T>, IReadOnlyCollection<T>, IEnumerable

Type parameters

T

No documentation is available.

Implements

Nested types

NameDescription
AppendOnlyCollection<T>.Enumerator

Constructors

NameDescription
AppendOnlyCollection()
AppendOnlyCollection(int)

AppendOnlyCollection overloads

AppendOnlyCollection()

AppendOnlyCollection.cs
public AppendOnlyCollection()

No documentation is available.

AppendOnlyCollection(int)

AppendOnlyCollection.cs
public AppendOnlyCollection(int capacity)
Parameters
capacity int

No documentation is available.

Properties

NameDescription
Count
System.Collections.Generic.ICollection<T>.IsReadOnly
public int Count { get; }

Property value

int

No documentation is available.

System.Collections.Generic.ICollection<T>.IsReadOnly

AppendOnlyCollection.cs
bool ICollection<T>.IsReadOnly { get; }

Property value

bool

No documentation is available.

Indexers

NameDescription
this[int]
public T this[int index] { get; }

Parameters

index int

Property value

T

No documentation is available.

Methods

NameDescription
Add(T)
Contains(Func<T, bool>)
Find(Func<T, bool>)
GetEnumerator()
System.Collections.Generic.ICollection<T>.Clear()
System.Collections.Generic.ICollection<T>.Contains(T)
System.Collections.Generic.ICollection<T>.CopyTo(T[], int)
System.Collections.Generic.ICollection<T>.Remove(T)
System.Collections.Generic.IEnumerable<T>.GetEnumerator()
System.Collections.IEnumerable.GetEnumerator()
TryFind(Func<T, bool>, T)
public void Add(T item)

Parameters

item T

No documentation is available.

Contains(Func<T, bool>)

AppendOnlyCollection.cs
public bool Contains(Func<T, bool> predicate)

Parameters

predicate Func<T, bool>

Returns

bool

No documentation is available.

Find(Func<T, bool>)

AppendOnlyCollection.cs
public T? Find(Func<T, bool> predicate)

Parameters

predicate Func<T, bool>

Returns

T?

No documentation is available.

public AppendOnlyCollection<T>.Enumerator GetEnumerator()

No documentation is available.

System.Collections.Generic.ICollection<T>.Clear()

AppendOnlyCollection.cs
void ICollection<T>.Clear()

No documentation is available.

System.Collections.Generic.ICollection<T>.Contains(T)

AppendOnlyCollection.cs
bool ICollection<T>.Contains(T item)

Parameters

item T

Returns

bool

No documentation is available.

System.Collections.Generic.ICollection<T>.CopyTo(T[], int)

AppendOnlyCollection.cs
void ICollection<T>.CopyTo(T[] array, int arrayIndex)

Parameters

array T[]
arrayIndex int

No documentation is available.

System.Collections.Generic.ICollection<T>.Remove(T)

AppendOnlyCollection.cs
bool ICollection<T>.Remove(T item)

Parameters

item T

Returns

bool

No documentation is available.

System.Collections.Generic.IEnumerable<T>.GetEnumerator()

AppendOnlyCollection.cs
IEnumerator<T> IEnumerable<T>.GetEnumerator()

No documentation is available.

System.Collections.IEnumerable.GetEnumerator()

AppendOnlyCollection.cs
IEnumerator IEnumerable.GetEnumerator()

No documentation is available.

TryFind(Func<T, bool>, T)

AppendOnlyCollection.cs
public bool TryFind(Func<T, bool> predicate, out T result)

Parameters

predicate Func<T, bool>
result T

Returns

bool

No documentation is available.