Class ConverterTypeCollection
- Namespace
- Nerdbank.MessagePack
- Assembly
- Nerdbank.MessagePack.dll
An immutable collection of MessagePackConverter<T> types.
public class ConverterTypeCollection : IReadOnlyCollection<Type>, IEnumerable<Type>, 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<Type>)
Initializes a new instance of the ConverterTypeCollection class populated with a collection of Types.
public static ConverterTypeCollection Create(ReadOnlySpan<Type> converterTypes)
Parameters
converterTypes
ReadOnlySpan<Type>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<Type>.Enumerator GetEnumerator()
Returns
- ImmutableArray<Type>.Enumerator
The enumerator.