System.CodeDom.CodeTypeOfExpression Class

Represents a typeof expression, an expression that returns a Type for a specified type name.

See Also: CodeTypeOfExpression Members

Syntax

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

Remarks

A System.CodeDom.CodeTypeOfExpression represents a typeof expression that returns a Type at runtime.

The CodeTypeOfExpression.Type property specifies the data type to return a Type object for.

Use System.CodeDom.CodeTypeReferenceExpression to represent source code that refers to a type by name, such as when creating a System.CodeDom.CodeCastExpression to cast an object to a name-specified type.

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