Class JsonConverterCollectionExtensions
Extension methods for the System.Collections.Generic.ICollection<T>.
Inheritance
System.Object
JsonConverterCollectionExtensions
Namespace: Cuemon.AspNetCore.Mvc.Formatters.Json.Converters
Assembly: Cuemon.AspNetCore.Mvc.Formatters.Json.dll
Syntax
public static class JsonConverterCollectionExtensions
Methods
| Improve this DocAddHttpExceptionDescriptorConverter(ICollection<JsonConverter>, Action<ExceptionDescriptorSerializationOptions>)
Adds an HttpExceptionDescriptor JSON converter to the list.
Declaration
public static void AddHttpExceptionDescriptorConverter(this ICollection<JsonConverter> converters, Action<ExceptionDescriptorSerializationOptions> setup = null)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.ICollection<Newtonsoft.Json.JsonConverter> | converters | The list of JSON converters. |
System.Action<ExceptionDescriptorSerializationOptions> | setup | The ExceptionDescriptorSerializationOptions which need to be configured. |
AddStringValuesConverter(ICollection<JsonConverter>)
Adds an Microsoft.Extensions.Primitives.StringValues JSON converter to the list.
Declaration
public static void AddStringValuesConverter(this ICollection<JsonConverter> converters)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.ICollection<Newtonsoft.Json.JsonConverter> | converters | The list of JSON converters. |