Class ConverterTypeCollection
- Namespace
- Nerdbank.MessagePack
- Assembly
- Nerdbank.MessagePack.dll
An immutable collection of MessagePackConverter<T> types.
public class ConverterTypeCollection : IReadOnlyCollection<ConverterTypeCollection.ConverterType>, IEnumerable<ConverterTypeCollection.ConverterType>, IEnumerable
- Inheritance
-
ConverterTypeCollection
- 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<ConverterType>)
Initializes a new instance of the ConverterTypeCollection class populated with a collection of Types.
public static ConverterTypeCollection Create(ReadOnlySpan<ConverterTypeCollection.ConverterType> converterTypes)
Parameters
converterTypesReadOnlySpan<ConverterTypeCollection.ConverterType>The MessagePackConverter<T> types that should be elements in the collection.
Returns
- ConverterTypeCollection
The newly initialized collection type.
GetEnumerator()
Gets an enumerator over the Type elements of the collection.
public ImmutableArray<ConverterTypeCollection.ConverterType>.Enumerator GetEnumerator()
Returns
- ImmutableArray<ConverterTypeCollection.ConverterType>.Enumerator
The enumerator.