Class CSharpEnumValue
A possible value for a CSharpEnum.
Namespace: NanoByte.CodeGeneration
Assembly: NanoByte.CodeGeneration.dll
Syntax
public class CSharpEnumValue : Object
Constructors
CSharpEnumValue(String)
Creates a new enum value.
Declaration
public CSharpEnumValue(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name | The name of the enum value. |
Properties
Attributes
Attributes to apply to the enum value.
Declaration
public List<CSharpAttribute> Attributes { get; }
Property Value
Type | Description |
---|---|
List<CSharpAttribute> |
Name
The name of the enum value.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String |
Summary
A summary used for an XML documentation comment.
Declaration
public string Summary { get; set; }
Property Value
Type | Description |
---|---|
String |
Methods
ToString()
Returns the name of the enum value.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |