YamlPropertyNameAttribute Class
Specifies the serialized YAML property name for a member.
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
public sealed class YamlPropertyNameAttribute : YamlAttribute- Inheritance
YamlAttributeYamlPropertyNameAttribute
Constructors
| Name | Description |
|---|---|
| YamlPropertyNameAttribute(string) | Initializes a new instance of the YamlPropertyNameAttribute class. |
YamlPropertyNameAttribute(string)
YamlPropertyNameAttribute.csInitializes a new instance of the YamlPropertyNameAttribute class.
public YamlPropertyNameAttribute(string name)Parameters
namestring- The serialized member name.
Exceptions
ArgumentExceptionnameis empty.ArgumentNullExceptionnameisnull.
Properties
| Name | Description |
|---|---|
| Name | Gets the serialized member name. |