ReadonlynameThe name of the class
ReadonlynamespaceThe namespace containing the class
ReadonlyaccessThe access level of the class
ReadonlyabstractWhether the class is abstract
Readonlystatic_Whether the class is static
ReadonlysealedWhether the class is sealed
ReadonlypartialWhether the class is partial
ReadonlyreferenceThe class reference for this class
ReadonlyinterfaceThe interfaces implemented by this class
ReadonlyisWhether this is a nested class
ReadonlyannotationsThe annotations applied to this class
Optional ReadonlysplitWhether to split annotations onto separate lines
The parent class this class inherits from
Adds a constructor to the class.
The constructor to add
Adds a nested interface to this class.
The nested interface to add
Writes the class declaration and its members to the writer.
The writer to write to
Returns the string representation of the AST node. This method creates a new Writer instance and writes the node's content to it.
The string representation of the AST node
Represents a C# class in the AST. This class handles the generation of C# class declarations including fields, constructors, methods, and nested types.