Table of Contents

RemoveAllOf Method

Definition

RemoveAllOf<T>(ICollection<JsonConverter>)

Removes one or more JsonConverter implementations where CanConvert(Type) evaluates true in the collection of converters.

public static ICollection<JsonConverter> RemoveAllOf<T>(this ICollection<JsonConverter> converters)

Parameters

converters ICollection<JsonConverter>

The collection of JsonConverter to extend.

Returns

ICollection<JsonConverter>

A reference to converters so that additional calls can be chained.

Type Parameters

T

The type of object or value handled by the JsonConverter.

Exceptions

ArgumentNullException

converters cannot be null.

RemoveAllOf(ICollection<JsonConverter>, params Type[])

Removes one or more JsonConverter implementations where CanConvert(Type) evaluates true in the collection of converters.

public static ICollection<JsonConverter> RemoveAllOf(this ICollection<JsonConverter> converters, params Type[] types)

Parameters

converters ICollection<JsonConverter>

The collection of JsonConverter to extend.

types Type[]

The type of objects or values handled by a sequence of JsonConverter.

Returns

ICollection<JsonConverter>

A reference to converters so that additional calls can be chained.

Exceptions

ArgumentNullException

converters cannot be null.