Class ConverterTypeCollection
- Namespace
- Nerdbank.Json
- Assembly
- Nerdbank.Json.dll
An immutable collection of JsonConverter<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>)
Creates an immutable snapshot of converter types.
public static ConverterTypeCollection Create(ReadOnlySpan<ConverterTypeCollection.ConverterType> converterTypes)
Parameters
converterTypesReadOnlySpan<ConverterTypeCollection.ConverterType>The converter types to include.
Returns
- ConverterTypeCollection
The initialized collection.
GetEnumerator()
Returns an enumerator that iterates through the collection.
public ImmutableArray<ConverterTypeCollection.ConverterType>.Enumerator GetEnumerator()
Returns
- ImmutableArray<ConverterTypeCollection.ConverterType>.Enumerator
An enumerator that can be used to iterate through the collection.