Table of Contents

Struct CollectionSink<T>

Namespace
Jitter2.DataStructures
Assembly
Jitter2.dll

Adapts an ICollection<T> to the ISink<T> interface.

public readonly struct CollectionSink<T> : ISink<T>

Type Parameters

T

The element type.

Implements
Inherited Members

Constructors

CollectionSink(ICollection<T>)

Creates a sink that forwards to the specified collection.

public CollectionSink(ICollection<T> collection)

Parameters

collection ICollection<T>

Exceptions

ArgumentNullException

Thrown when collection is null.

Methods

Add(in T)

Appends a value to the wrapped collection.

public void Add(in T item)

Parameters

item T