Class JsonFormatAttribute
Represents a custom JSON attribute for specifying the format of a property when serializing to JSON.
Inherited Members
Namespace: Innovt.Core.Serialization
Assembly: Innovt.Core.dll
Syntax
[AttributeUsage(AttributeTargets.Property)]
public sealed class JsonFormatAttribute : JsonAttribute
Constructors
| Edit this page View SourceJsonFormatAttribute(string)
Initializes a new instance of the JsonFormatAttribute class with the specified format.
Declaration
public JsonFormatAttribute(string format)
Parameters
| Type | Name | Description |
|---|---|---|
| string | format | The format string used to specify how the property should be formatted when serialized to JSON. |
Properties
| Edit this page View SourceFormat
Gets the format string that specifies how the property should be formatted when serialized to JSON.
Declaration
public string Format { get; }
Property Value
| Type | Description |
|---|---|
| string |