NanoByte Code Generation  0.3.1
Wrapper around Roslyn API to simplify generating C# code
NanoByte.CodeGeneration.CSharpEnum Class Reference

Describes a C# enum for which code can be generated. More...

Inheritance diagram for NanoByte.CodeGeneration.CSharpEnum:
NanoByte.CodeGeneration.CSharpType NanoByte.CodeGeneration.ICSharpType

Public Member Functions

 CSharpEnum (CSharpIdentifier identifier)
 Creates a new C# enum. More...
 
- Public Member Functions inherited from NanoByte.CodeGeneration.CSharpType
CompilationUnitSyntax ToSyntax ()
 Returns a Roslyn syntax for a file containing the type.
 
override string ToString ()
 Returns the name of the type. More...
 

Protected Member Functions

override MemberDeclarationSyntax GetMemberDeclaration ()
 Returns a Roslyn syntax for the type.
 
override ISet< string > GetNamespaces ()
 Returns a list of all namespaces referenced/used in this type.
 
- Protected Member Functions inherited from NanoByte.CodeGeneration.CSharpType
 CSharpType (CSharpIdentifier identifier)
 Creates a new C# type. More...
 

Properties

List< CSharpEnumValueValues = new List<CSharpEnumValue>() [get]
 A list of possible values for the enum. More...
 
- Properties inherited from NanoByte.CodeGeneration.CSharpType
CSharpIdentifier Identifier [get]
 
string? Summary [get, set]
 
List< CSharpAttributeAttributes = new List<CSharpAttribute>() [get]
 
- Properties inherited from NanoByte.CodeGeneration.ICSharpType
CSharpIdentifier Identifier [get]
 The fully qualified name of the type. More...
 
string? Summary [get, set]
 A summary used for an XML documentation comment. More...
 
List< CSharpAttributeAttributes [get]
 Attributes to apply to the type. More...
 

Detailed Description

Describes a C# enum for which code can be generated.

Constructor & Destructor Documentation

◆ CSharpEnum()

NanoByte.CodeGeneration.CSharpEnum.CSharpEnum ( CSharpIdentifier  identifier)
inline

Creates a new C# enum.

Parameters
identifierThe fully qualified name of the enum.

Property Documentation

◆ Values

List<CSharpEnumValue> NanoByte.CodeGeneration.CSharpEnum.Values = new List<CSharpEnumValue>()
get

A list of possible values for the enum.


The documentation for this class was generated from the following file: