Rediger

Del via


CodeCastExpression Constructors

Definition

Initializes a new instance of the CodeCastExpression class.

Overloads

CodeCastExpression()

Initializes a new instance of the CodeCastExpression class.

CodeCastExpression(CodeTypeReference, CodeExpression)

Initializes a new instance of the CodeCastExpression class using the specified destination type and expression.

CodeCastExpression(String, CodeExpression)

Initializes a new instance of the CodeCastExpression class using the specified destination type and expression.

CodeCastExpression(Type, CodeExpression)

Initializes a new instance of the CodeCastExpression class using the specified destination type and expression.

CodeCastExpression()

Source:
CodeCastExpression.cs
Source:
CodeCastExpression.cs
Source:
CodeCastExpression.cs
Source:
CodeCastExpression.cs

Initializes a new instance of the CodeCastExpression class.

public:
 CodeCastExpression();
public CodeCastExpression ();
Public Sub New ()

Applies to

CodeCastExpression(CodeTypeReference, CodeExpression)

Source:
CodeCastExpression.cs
Source:
CodeCastExpression.cs
Source:
CodeCastExpression.cs
Source:
CodeCastExpression.cs

Initializes a new instance of the CodeCastExpression class using the specified destination type and expression.

public:
 CodeCastExpression(System::CodeDom::CodeTypeReference ^ targetType, System::CodeDom::CodeExpression ^ expression);
public CodeCastExpression (System.CodeDom.CodeTypeReference targetType, System.CodeDom.CodeExpression expression);
new System.CodeDom.CodeCastExpression : System.CodeDom.CodeTypeReference * System.CodeDom.CodeExpression -> System.CodeDom.CodeCastExpression
Public Sub New (targetType As CodeTypeReference, expression As CodeExpression)

Parameters

targetType
CodeTypeReference

A CodeTypeReference that indicates the destination type of the cast.

expression
CodeExpression

The CodeExpression to cast.

See also

Applies to

CodeCastExpression(String, CodeExpression)

Source:
CodeCastExpression.cs
Source:
CodeCastExpression.cs
Source:
CodeCastExpression.cs
Source:
CodeCastExpression.cs

Initializes a new instance of the CodeCastExpression class using the specified destination type and expression.

public:
 CodeCastExpression(System::String ^ targetType, System::CodeDom::CodeExpression ^ expression);
public CodeCastExpression (string targetType, System.CodeDom.CodeExpression expression);
new System.CodeDom.CodeCastExpression : string * System.CodeDom.CodeExpression -> System.CodeDom.CodeCastExpression
Public Sub New (targetType As String, expression As CodeExpression)

Parameters

targetType
String

The name of the destination type of the cast.

expression
CodeExpression

The CodeExpression to cast.

Applies to

CodeCastExpression(Type, CodeExpression)

Source:
CodeCastExpression.cs
Source:
CodeCastExpression.cs
Source:
CodeCastExpression.cs
Source:
CodeCastExpression.cs

Initializes a new instance of the CodeCastExpression class using the specified destination type and expression.

public:
 CodeCastExpression(Type ^ targetType, System::CodeDom::CodeExpression ^ expression);
public CodeCastExpression (Type targetType, System.CodeDom.CodeExpression expression);
new System.CodeDom.CodeCastExpression : Type * System.CodeDom.CodeExpression -> System.CodeDom.CodeCastExpression
Public Sub New (targetType As Type, expression As CodeExpression)

Parameters

targetType
Type

The destination data type of the cast.

expression
CodeExpression

The CodeExpression to cast.

Applies to