Class JsonConverterTypeCollection
- Namespace
- Nerdbank.Json
- Assembly
- Nerdbank.Json.dll
An immutable collection of JsonConverter<T> types.
public class JsonConverterTypeCollection : IReadOnlyCollection<Type>, IEnumerable<Type>, IEnumerable
- Inheritance
-
JsonConverterTypeCollection
- Implements
- Inherited Members
Constructors
JsonConverterTypeCollection()
Initializes a new instance of the JsonConverterTypeCollection class.
public JsonConverterTypeCollection()
Remarks
The created collection is empty.
JsonConverterTypeCollection(IEnumerable<Type>)
Initializes a new instance of the JsonConverterTypeCollection class from a sequence of converter types.
public JsonConverterTypeCollection(IEnumerable<Type> converterTypes)
Parameters
converterTypesIEnumerable<Type>The converter types to include.
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
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<Type> GetEnumerator()
Returns
- IEnumerator<Type>
An enumerator that can be used to iterate through the collection.