FormatAttribute

FormatAttribute class

Instructs objects serialization to serialize the member with the specified name and format

[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter)]
public sealed class FormatAttribute : Attribute

Constructors

Name Description
FormatAttribute(string) Creates Format attribute with given property Name
FormatAttribute(string, string) Creates Format attribute with given property Name

Properties

Name Description
PropertyFormat { get; set; } Gets or sets the serialization format of the property.
PropertyName { get; set; } Gets or sets the name of the property.

See Also