Readonly
nameThe name of the method
Readonly
isWhether the method is asynchronous
Readonly
accessThe access level of the method
Readonly
returnThe return type of the method
Readonly
bodyThe body of the method
Readonly
summaryXML documentation summary for the method
Readonly
typeThe type of the method (instance or static)
Readonly
referenceThe class reference for this method
The type of class containing this method
Optional
Readonly
annotationsThe annotations applied to this method
Optional
Readonly
splitWhether to split annotations onto separate lines
Writes the method declaration and its body to the writer.
The writer to write to
Creates a method invocation for this method with the given arguments.
The method invocation
Creates a method invocation for this method using example values.
Map of parameter names to example values
Optional
on: CodeBlockOptional code block to invoke the method on
The method invocation
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# method in the AST. This class handles the generation of C# method declarations including parameters, return type, body, and annotations.