AddStringEnumConverter Method
Definition
- Namespace
- Codebelt.Extensions.Newtonsoft.Json.Converters
- Assemblies
- Codebelt.Extensions.Newtonsoft.Json.dll
AddStringEnumConverter(ICollection<JsonConverter>, NamingStrategy)
Adds an Enum JSON converter to the list.
public static ICollection<JsonConverter> AddStringEnumConverter(this ICollection<JsonConverter> converters, NamingStrategy ns = null)
Parameters
convertersICollection<JsonConverter>The ICollection<T> to extend.
nsNamingStrategyThe optional Newtonsoft.Json.Serialization.NamingStrategy to apply.
Returns
- ICollection<JsonConverter>
A reference to
convertersafter the operation has completed.