Table of Contents

Class OperatorResolveResult

Namespace
ICSharpCode.Decompiler.Semantics
Assembly
ICSharpCode.Decompiler.dll

Represents a unary/binary/ternary operator invocation.

public class OperatorResolveResult : ResolveResult
Inheritance
OperatorResolveResult
Inherited Members
Extension Methods

Constructors

OperatorResolveResult(IType, ExpressionType, params ResolveResult[])

public OperatorResolveResult(IType resultType, ExpressionType operatorType, params ResolveResult[] operands)

Parameters

resultType IType
operatorType ExpressionType
operands ResolveResult[]

OperatorResolveResult(IType, ExpressionType, IMethod, bool, IList<ResolveResult>)

public OperatorResolveResult(IType resultType, ExpressionType operatorType, IMethod userDefinedOperatorMethod, bool isLiftedOperator, IList<ResolveResult> operands)

Parameters

resultType IType
operatorType ExpressionType
userDefinedOperatorMethod IMethod
isLiftedOperator bool
operands IList<ResolveResult>

Properties

IsLiftedOperator

Gets whether this is a lifted operator.

public bool IsLiftedOperator { get; }

Property Value

bool

Operands

Gets the operands.

public IList<ResolveResult> Operands { get; }

Property Value

IList<ResolveResult>

OperatorType

Gets the operator type.

public ExpressionType OperatorType { get; }

Property Value

ExpressionType

UserDefinedOperatorMethod

Gets the user defined operator method. Returns null if this is a predefined operator.

public IMethod UserDefinedOperatorMethod { get; }

Property Value

IMethod

Methods

GetChildResults()

public override IEnumerable<ResolveResult> GetChildResults()

Returns

IEnumerable<ResolveResult>