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