In This Article

IVariableDefinition Interface

Provides the base requirements of a variable definition.

public interface IVariableDefinition : IReflectionDefinition

Properties

DeclaringModule

Gets the reference to the module in which the variable is declared.

IModuleReference DeclaringModule { get; }

Property Value

IModuleReference:

The reference to the module in which the variable is declared.

IsConstant

Gets whether the variable is a constant.

bool IsConstant { get; }

Property Value

bool:

true if the variable is a constant; otherwise, false.

IsPublic

Gets whether the variable is public.

bool IsPublic { get; }

Property Value

bool:

true if the variable is public; otherwise, false.

Type

Gets a ITypeDefinition indicating the variable type, if known.

ITypeDefinition Type { get; }

Property Value

ITypeDefinition:

A ITypeDefinition indicating the variable type, if known.

TypeExpressionTextRange

Gets the variable type expression TextRange.

TextRange TypeExpressionTextRange { get; }

Property Value

TextRange:

The variable type expression TextRange.

Inherited Members