IVariableDefinition Interface
Provides the base requirements of a variable definition.
public interface IVariableDefinition : IReflectionDefinition
Properties
DeclaringMember
Gets the type member that declares the current variable.
ITypeMemberDefinition DeclaringMember { get; }
Property Value
- ITypeMemberDefinition:
An ITypeMemberDefinition object representing the type member that declares the current variable.
IsDynamicType
Gets whether the variable type is a dynamic type.
bool IsDynamicType { get; }
Property Value
- Boolean:
true
if the variable type is a dynamic type; otherwise,false
.
IsRangeVariable
Gets whether the variable is a LINQ range variable.
bool IsRangeVariable { get; }
Property Value
- Boolean:
true
if the variable is a LINQ range variable; otherwise,false
.
SourceFileLocation
Gets the source file location that contain the variable's declaration.
ISourceFileLocation SourceFileLocation { get; }
Property Value
- ISourceFileLocation:
The source file location that contain the variable's declaration.
Remarks
This property only knows the source file location for variable definitions loaded from code.
Type
Gets an ITypeReference for the variable type.
ITypeReference Type { get; }
Property Value
- ITypeReference:
An ITypeReference for the variable type.