System.CodeDom.CodeCastExpression Class

Represents an expression cast to a data type or interface.

See Also: CodeCastExpression Members

Syntax

[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
[System.Runtime.InteropServices.ComVisible(true)]
public class CodeCastExpression : CodeExpression

Remarks

System.CodeDom.CodeCastExpression can be used to represent an expression cast to a different data type or interface.

The CodeCastExpression.Expression property indicates the System.CodeDom.CodeExpression to cast. The CodeCastExpression.TargetType property indicates the type to cast to.

Requirements

Namespace: System.CodeDom
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0, 4.0.0.0