HumanReadablePropertyNameAttribute Class

Specifies the name to use when serializing a property or field.

[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
public sealed class HumanReadablePropertyNameAttribute : HumanReadableAttribute
Inheritance
HumanReadableAttribute HumanReadablePropertyNameAttribute

Constructors

NameDescription
HumanReadablePropertyNameAttribute(string)Initializes a new instance of the HumanReadablePropertyNameAttribute class.

HumanReadablePropertyNameAttribute(string)

HumanReadablePropertyNameAttribute.cs

Initializes a new instance of the HumanReadablePropertyNameAttribute class.

public HumanReadablePropertyNameAttribute(string name)

Parameters

name string
The name to use when serializing.

Properties

NameDescription
NameGets the name to use when serializing.

Gets the name to use when serializing.

public string Name { get; }

Property value

string