MethodArgumentDeclaration Class

Represents a method argument declaration.

public class MethodArgumentDeclaration : CodeObject, ICommentable, ICustomAttributeContainer
Inheritance
CodeObject MethodArgumentDeclaration
Implements

Constructors

NameDescription
MethodArgumentDeclaration()
MethodArgumentDeclaration(TypeReference?, string?)Initializes a new instance of the MethodArgumentDeclaration class with the specified type and name.

MethodArgumentDeclaration overloads

MethodArgumentDeclaration()

MethodArgumentDeclaration.cs
public MethodArgumentDeclaration()

No documentation is available.

MethodArgumentDeclaration(TypeReference?, string?)

MethodArgumentDeclaration.cs

Initializes a new instance of the MethodArgumentDeclaration class with the specified type and name.

public MethodArgumentDeclaration(TypeReference? type, string? name)
Parameters
type TypeReference?
The argument type.
name string?
The argument name.

Properties

NameDescription
CommentsAfter
CommentsBefore
CustomAttributes
DefaultValue
Direction
IsExtension
Name
Type
public CommentCollection CommentsAfter { get; }

Property value

CommentCollection

No documentation is available.

public CommentCollection CommentsBefore { get; }

Property value

CommentCollection

No documentation is available.

public CodeObjectCollection<CustomAttribute> CustomAttributes { get; }

No documentation is available.

public Expression? DefaultValue { get; set; }

Property value

Expression?

No documentation is available.

public Direction Direction { get; set; }

Property value

Direction

No documentation is available.

public bool IsExtension { get; set; }

Property value

bool

No documentation is available.

public string? Name { get; set; }

Property value

string?

No documentation is available.

public TypeReference? Type { get; set; }

Property value

TypeReference?

No documentation is available.