Class ConstantResolveResult
- Namespace
- ICSharpCode.Decompiler.Semantics
- Assembly
- ICSharpCode.Decompiler.dll
ResolveResult representing a compile-time constant.
Note: this class is mainly used for literals; there may be other ResolveResult classes
which are compile-time constants as well.
For example, a reference to a const
field results in a MemberResolveResult.
Check IsCompileTimeConstant to determine is a resolve result is a constant.
public class ConstantResolveResult : ResolveResult
- Inheritance
-
ConstantResolveResult
- Inherited Members
- Extension Methods
Constructors
ConstantResolveResult(IType, object)
public ConstantResolveResult(IType type, object constantValue)
Parameters
Properties
ConstantValue
public override object ConstantValue { get; }
Property Value
IsCompileTimeConstant
public override bool IsCompileTimeConstant { get; }
Property Value
Methods
ToString()
public override string ToString()