Class DateTimeJsonConverterAttribute
- Namespace
- NuvTools.Common.Serialization.Json.Converters
- Assembly
- NuvTools.Common.dll
Allows applying a DateTimeJsonConverter<T> directly on a property, specifying the exact serialization/deserialization date format.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = false)]
public sealed class DateTimeJsonConverterAttribute : JsonConverterAttribute
- Inheritance
-
DateTimeJsonConverterAttribute
- Inherited Members
- Extension Methods
Constructors
DateTimeJsonConverterAttribute(string)
Allows applying a DateTimeJsonConverter<T> directly on a property, specifying the exact serialization/deserialization date format.
public DateTimeJsonConverterAttribute(string format)
Parameters
formatstring
Methods
CreateConverter(Type)
Creates a typed DateTimeJsonConverter<T> for supported date types.
public override JsonConverter CreateConverter(Type typeToConvert)
Parameters
typeToConvertType