Table of Contents

Class ConverterCollection

Namespace
ShapeShift
Assembly
ShapeShift.dll
public static class ConverterCollection
Inheritance
ConverterCollection
Inherited Members

Methods

Create<TEncoder, TDecoder>(ReadOnlySpan<ShapeShiftConverter<TEncoder, TDecoder>>)

Creates a new instance of ConverterCollection from the specified converters.

public static ConverterCollection<TEncoder, TDecoder> Create<TEncoder, TDecoder>(ReadOnlySpan<ShapeShiftConverter<TEncoder, TDecoder>> converters) where TEncoder : IEncoder, allows ref struct where TDecoder : IDecoder, allows ref struct

Parameters

converters ReadOnlySpan<ShapeShiftConverter<TEncoder, TDecoder>>

The converters to fill the collection with.

Returns

ConverterCollection<TEncoder, TDecoder>

The initialized collection.

Type Parameters

TEncoder

The type of encoder to use.

TDecoder

The type of decoder to use.