AddStringFlagsEnumConverter Method
Definition
- Namespace
- Codebelt.Extensions.Newtonsoft.Json.Converters
- Assemblies
- Codebelt.Extensions.Newtonsoft.Json.dll
AddStringFlagsEnumConverter(ICollection<JsonConverter>, NamingStrategy)
Adds a combined Enum and FlagsAttribute JSON converter to the list.
public static ICollection<JsonConverter> AddStringFlagsEnumConverter(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.