Class MethodBase
Base class for method-like nodes.
public abstract class MethodBase : AttributeOwner, ICodeElement
- Inheritance
-
MethodBase
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
MethodBase(IEnumerable<CodeAttribute>?, Modifiers, CodeBlock?, CodeXmlComment?, IEnumerable<CodeParameter>?)
protected MethodBase(IEnumerable<CodeAttribute>? customAttributes, Modifiers attributes, CodeBlock? body, CodeXmlComment? xmlDoc, IEnumerable<CodeParameter>? parameters)
Parameters
customAttributes
IEnumerable<CodeAttribute>attributes
Modifiersbody
CodeBlockxmlDoc
CodeXmlCommentparameters
IEnumerable<CodeParameter>
Properties
Attributes
Method modifiers.
public Modifiers Attributes { get; }
Property Value
Body
Method body (top-level block).
public CodeBlock? Body { get; }
Property Value
Parameters
Parameters collection.
public IReadOnlyList<CodeParameter> Parameters { get; }
Property Value
XmlDoc
Xml-documentation comment.
public CodeXmlComment? XmlDoc { get; }