YamlStringEnumMemberNameAttribute class
Determines the string value that should be used when serializing an enum member.
Namespace: System.Text.Yaml.Serialization · Assembly: Styml.dll
public class YamlStringEnumMemberNameAttribute : Attribute
Inheritance: object → Attribute → YamlStringEnumMemberNameAttribute
Determines the string value that should be used when serializing an enum member.
ConstructorsLink to this heading
Creates new attribute instance with a specified enum member name.
public YamlStringEnumMemberNameAttribute(string name);
Parameters
name: The name to apply to the current enum member.
PropertiesLink to this heading
NameLink to this heading
Gets the name of the enum member.
public string Name { get; }