YamlPropertyNameAttribute class

Specifies the property name that is present in the YAML when serializing and deserializing. This overrides any naming policy specified by YamlNamingPolicy.

Namespace: System.Text.Yaml.Serialization ยท Assembly: Styml.dll

public sealed class YamlPropertyNameAttribute : YamlAttribute

Inheritance: object โ†’ Attribute โ†’ YamlAttribute โ†’ YamlPropertyNameAttribute

Specifies the property name that is present in the YAML when serializing and deserializing. This overrides any naming policy specified by YamlNamingPolicy.

ConstructorsLink to this heading

Initializes a new instance of YamlPropertyNameAttribute with the specified property name.

public YamlPropertyNameAttribute(string name);

Parameters

  • name: The name of the property.

PropertiesLink to this heading

NameLink to this heading

The name of the property.

public string Name { get; }

Generated from the XML documentation of the libraryBuilt with Douze

Esc to close