RemoveAllOf Method
Definition
- Namespace
- Cuemon.Extensions.Text.Json.Converters
- Assemblies
- Cuemon.Extensions.Text.Json.dll
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
convertersICollection<JsonConverter>The collection of JsonConverter to extend.
Returns
- ICollection<JsonConverter>
A reference to
convertersso that additional calls can be chained.
Type Parameters
TThe type of object or value handled by the JsonConverter.
Exceptions
- ArgumentNullException
converterscannot 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
convertersICollection<JsonConverter>The collection of JsonConverter to extend.
typesType[]The type of objects or values handled by a sequence of JsonConverter.
Returns
- ICollection<JsonConverter>
A reference to
convertersso that additional calls can be chained.
Exceptions
- ArgumentNullException
converterscannot be null.