CatchClause Class

Represents a catch clause in a try-catch statement.

public class CatchClause : CodeObject, ICommentable
Inheritance
CodeObject CatchClause
Implements

Constructors

NameDescription
CatchClause()

CatchClause()

CatchClause.cs
public CatchClause()

No documentation is available.

Properties

NameDescription
Body
CommentsAfter
CommentsBefore
ExceptionType
ExceptionVariableName
public StatementCollection? Body { get; set; }

Property value

StatementCollection?

No documentation is available.

CommentsAfter

CatchClause.cs
public CommentCollection CommentsAfter { get; }

Property value

CommentCollection

No documentation is available.

CommentsBefore

CatchClause.cs
public CommentCollection CommentsBefore { get; }

Property value

CommentCollection

No documentation is available.

ExceptionType

CatchClause.cs
public TypeReference? ExceptionType { get; set; }

Property value

TypeReference?

No documentation is available.

ExceptionVariableName

CatchClause.cs
public string? ExceptionVariableName { get; set; }

Property value

string?

No documentation is available.