ReadonlynameThe name of the method
ReadonlyisWhether the method is asynchronous
ReadonlyaccessThe access level of the method
ReadonlyreturnThe return type of the method
ReadonlybodyThe body of the method
ReadonlysummaryXML documentation summary for the method
ReadonlytypeThe type of the method (instance or static)
ReadonlyreferenceThe class reference for this method
The type of class containing this method
Optional ReadonlyannotationsThe annotations applied to this method
Optional ReadonlysplitWhether 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
Optionalon: 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.