Table of Contents

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

type IType
constantValue object

Properties

ConstantValue

public override object ConstantValue { get; }

Property Value

object

IsCompileTimeConstant

public override bool IsCompileTimeConstant { get; }

Property Value

bool

Methods

ToString()

public override string ToString()

Returns

string