TomlStringEnumMemberNameAttribute Class
Sets the name TomlStringEnumConverter uses for an enum value.
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false)]
public sealed class TomlStringEnumMemberNameAttribute : TomlAttribute- Inheritance
TomlAttributeTomlStringEnumMemberNameAttribute
Constructors
| Name | Description |
|---|---|
| TomlStringEnumMemberNameAttribute(string) | Initializes a new instance of the TomlStringEnumMemberNameAttribute class. |
TomlStringEnumMemberNameAttribute(string)
TomlStringEnumMemberNameAttribute.csInitializes a new instance of the TomlStringEnumMemberNameAttribute class.
public TomlStringEnumMemberNameAttribute(string name)Parameters
namestring- The name of the enum value.
Exceptions
ArgumentNullExceptionnameisnull.ArgumentExceptionnameis empty.
Properties
| Name | Description |
|---|---|
| Name | Gets the name of the enum value. |