Class JsonConverterAttribute
- Namespace
- Newtonsoft.Json
- Assembly
- Newtonsoft.Json.dll
Instructs the JsonSerializer to use the specified JsonConverter when serializing the member or class.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum|AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Interface|AttributeTargets.Parameter, AllowMultiple = false)]
public sealed class JsonConverterAttribute : Attribute
- Inheritance
-
JsonConverterAttribute
- Inherited Members
Constructors
JsonConverterAttribute(Type)
Initializes a new instance of the JsonConverterAttribute class.
public JsonConverterAttribute(Type converterType)
Parameters
converterType
TypeType of the converter.
Properties
ConverterType
Gets the type of the converter.
public Type ConverterType { get; }
Property Value
- Type
The type of the converter.