Table of Contents

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

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<JsonConverter>)

Creates an immutable snapshot of a collection of converters.

public static ConverterCollection Create(ReadOnlySpan<JsonConverter> converters)

Parameters

converters ReadOnlySpan<JsonConverter>

The converters to include.

Returns

ConverterCollection

The initialized collection.

GetEnumerator()

Returns an enumerator that iterates through the collection.

public ImmutableArray<JsonConverter>.Enumerator GetEnumerator()

Returns

ImmutableArray<JsonConverter>.Enumerator

An enumerator that can be used to iterate through the collection.