AddValueObjectConverter Method
Definition
- Namespace
- Savvyio.Extensions.Newtonsoft.Json
- Assemblies
- Savvyio.Extensions.Newtonsoft.Json.dll
AddValueObjectConverter(ICollection<JsonConverter>, Action<ActivatorOptions>)
Adds a ValueObject converter to the collection.
public static ICollection<JsonConverter> AddValueObjectConverter(this ICollection<JsonConverter> converters, Action<ActivatorOptions> setup = null)
Parameters
convertersICollection<JsonConverter>The collection to extend.
setupAction<ActivatorOptions>The ActivatorOptions which may be configured.
Returns
- ICollection<JsonConverter>
A reference to
convertersso that additional calls can be chained.
Exceptions
- ArgumentNullException
converterscannot be null.