Interface IVariable
- Namespace
- ICSharpCode.Decompiler.TypeSystem
- Assembly
- ICSharpCode.Decompiler.dll
Represents a variable (name/type pair).
public interface IVariable : ISymbol
- Inherited Members
Properties
IsConst
Gets whether this variable is a constant (C#-like const).
bool IsConst { get; }
Property Value
Name
Gets the name of the variable.
string Name { get; }
Property Value
Type
Gets the type of the variable.
IType Type { get; }
Property Value
Methods
GetConstantValue(bool)
If this field is a constant, retrieves the value. For parameters, this is the default value.
object? GetConstantValue(bool throwOnInvalidMetadata = false)
Parameters
throwOnInvalidMetadata
bool