System.CodeDom.CodeVariableReferenceExpression Class

Represents a reference to a local variable.

See Also: CodeVariableReferenceExpression Members

Syntax

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

Remarks

System.CodeDom.CodeVariableReferenceExpression can be used to represent a reference to a local variable.

The CodeVariableReferenceExpression.VariableName property specifies the name of the local variable to reference.

Use System.CodeDom.CodeFieldReferenceExpression to reference a field. Use System.CodeDom.CodePropertyReferenceExpression to reference a property. Use System.CodeDom.CodeEventReferenceExpression to reference an event.

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