In This Article

IVariableDefinition Interface

Provides the base requirements of a variable definition.

public interface IVariableDefinition : IReflectionDefinition

Properties

DeclaringMember

The ITypeMemberDefinition representing the type member that declares the current variable.

ITypeMemberDefinition? DeclaringMember { get; }

Property Value

ITypeMemberDefinition

IsDynamicType

Indicates whether the variable type is a dynamic type.

bool IsDynamicType { get; }

Property Value

bool

IsRangeVariable

Indicates whether the variable is a LINQ range variable.

bool IsRangeVariable { get; }

Property Value

bool

SourceFileLocation

The source file location that contain the variable's declaration.

ISourceFileLocation? SourceFileLocation { get; }

Property Value

ISourceFileLocation

Remarks

This property only knows the source file location for variable definitions loaded from code.

Type

An ITypeReference for the variable type.

ITypeReference? Type { get; }

Property Value

ITypeReference

Inherited Members

Extension Methods