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
convertersReadOnlySpan<ShapeShiftConverter<TEncoder, TDecoder>>The converters to fill the collection with.
Returns
- ConverterCollection<TEncoder, TDecoder>
The initialized collection.
Type Parameters
TEncoderThe type of encoder to use. TDecoderThe type of decoder to use.