Class ConverterCollection
- Namespace
- Nerdbank.Json
- Assembly
- Nerdbank.Json.dll
An immutable collection of concrete JSON converters.
public class ConverterCollection : IReadOnlyCollection<JsonConverter>, IEnumerable<JsonConverter>, IEnumerable
- Inheritance
-
ConverterCollection
- Implements
- Inherited Members
Constructors
ConverterCollection()
Initializes a new instance of the ConverterCollection class.
public ConverterCollection()
Remarks
The created collection is empty.
ConverterCollection(IEnumerable<JsonConverter>)
Initializes a new instance of the ConverterCollection class from a sequence of converters.
public ConverterCollection(IEnumerable<JsonConverter> converters)
Parameters
convertersIEnumerable<JsonConverter>The converters 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<JsonConverter> GetEnumerator()
Returns
- IEnumerator<JsonConverter>
An enumerator that can be used to iterate through the collection.