FormatterCollection<TFormatter> Class

Definition

Represents a collection of formatters.

C#
public class FormatterCollection<TFormatter> : System.Collections.ObjectModel.Collection<TFormatter>

Type Parameters

TFormatter

The type of formatters in the collection.

Inheritance
Collection<TFormatter>
FormatterCollection<TFormatter>

Constructors

FormatterCollection<TFormatter>()

Initializes a new instance of the FormatterCollection<TFormatter> class that is empty.

FormatterCollection<TFormatter>(IList<TFormatter>)

Initializes a new instance of the FormatterCollection<TFormatter> class as a wrapper for the specified list.

Methods

RemoveType(Type)

Removes all formatters of the specified type.

RemoveType<T>()

Removes all formatters of the specified type.

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0