Class ConverterCollection
- Namespace
- Nerdbank.MessagePack
- Assembly
- Nerdbank.MessagePack.dll
An immutable collection of converters.
public class ConverterCollection : IReadOnlyCollection<MessagePackConverter>, IEnumerable<MessagePackConverter>, IEnumerable
- Inheritance
-
ConverterCollection
- Implements
- Inherited Members
Properties
Count
Gets the number of elements in the collection.
public int Count { get; }
Property Value
- int
The number of elements in the collection.
Methods
Create(ReadOnlySpan<MessagePackConverter>)
Creates a new instance of ConverterCollection from the specified converters.
public static ConverterCollection Create(ReadOnlySpan<MessagePackConverter> converters)
Parameters
converters
ReadOnlySpan<MessagePackConverter>The converters to fill the collection with.
Returns
- ConverterCollection
The initialized collection.
GetEnumerator()
Returns an enumerator that iterates through the collection.
public ImmutableArray<MessagePackConverter>.Enumerator GetEnumerator()
Returns
- ImmutableArray<MessagePackConverter>.Enumerator
An enumerator that can be used to iterate through the collection.