CastExpression Class

Represents an explicit cast expression.

public class CastExpression : Expression
Inheritance
Expression CastExpression

Constructors

NameDescription
CastExpression()
CastExpression(Expression?, TypeReference?)Initializes a new instance of the CastExpression class with the specified expression and target type.

CastExpression overloads

CastExpression()

CastExpression.cs
public CastExpression()

No documentation is available.

CastExpression(Expression?, TypeReference?)

CastExpression.cs

Initializes a new instance of the CastExpression class with the specified expression and target type.

public CastExpression(Expression? expression, TypeReference? type)
Parameters
expression Expression?
The expression to cast.
type TypeReference?
The target type.

Properties

NameDescription
Expression
Type
public Expression? Expression { get; set; }

Property value

Expression?

No documentation is available.

public TypeReference? Type { get; set; }

Property value

TypeReference?

No documentation is available.