Class JsonConverterAttribute
- Namespace
- Nerdbank.Json
- Assembly
- Nerdbank.Json.dll
Applies a custom JsonConverter<T> to a type or serialized member.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum|AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Interface|AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
public sealed class JsonConverterAttribute : Attribute
- Inheritance
-
JsonConverterAttribute
- Inherited Members
Remarks
Initializes a new instance of the JsonConverterAttribute class.
Constructors
JsonConverterAttribute(Type)
Applies a custom JsonConverter<T> to a type or serialized member.
public JsonConverterAttribute(Type converterType)
Parameters
converterTypeTypeThe converter type to activate.
Remarks
Initializes a new instance of the JsonConverterAttribute class.
Properties
ConverterType
Gets the converter type to activate.
public Type ConverterType { get; }