TomlPropertyNameAttribute Class

Specifies the serialized TOML property name for a member.

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

Constructors

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

TomlPropertyNameAttribute(string)

TomlPropertyNameAttribute.cs

Initializes a new instance of the TomlPropertyNameAttribute class.

public TomlPropertyNameAttribute(string name)

Parameters

name string
The serialized member name.

Properties

NameDescription
NameGets the serialized member name.

Gets the serialized member name.

public string Name { get; }

Property value

string