Table of Contents

Class ConditionalExpression

Namespace
ICSharpCode.Decompiler.CSharp.Syntax
Assembly
ICSharpCode.Decompiler.dll

Condition ? TrueExpression : FalseExpression

public class ConditionalExpression : Expression, IAnnotatable, IFreezable, INode, ICloneable
Inheritance
ConditionalExpression
Implements
Inherited Members
Extension Methods

Constructors

ConditionalExpression()

public ConditionalExpression()

ConditionalExpression(Expression, Expression, Expression)

public ConditionalExpression(Expression condition, Expression trueExpression, Expression falseExpression)

Parameters

condition Expression
trueExpression Expression
falseExpression Expression

Fields

ColonRole

public static readonly TokenRole ColonRole

Field Value

TokenRole

ConditionRole

public static readonly Role<Expression> ConditionRole

Field Value

Role<Expression>

FalseRole

public static readonly Role<Expression> FalseRole

Field Value

Role<Expression>

QuestionMarkRole

public static readonly TokenRole QuestionMarkRole

Field Value

TokenRole

TrueRole

public static readonly Role<Expression> TrueRole

Field Value

Role<Expression>

Properties

ColonToken

public CSharpTokenNode ColonToken { get; }

Property Value

CSharpTokenNode

Condition

public Expression Condition { get; set; }

Property Value

Expression

FalseExpression

public Expression FalseExpression { get; set; }

Property Value

Expression

QuestionMarkToken

public CSharpTokenNode QuestionMarkToken { get; }

Property Value

CSharpTokenNode

TrueExpression

public Expression TrueExpression { get; set; }

Property Value

Expression

Methods

AcceptVisitor(IAstVisitor)

public override void AcceptVisitor(IAstVisitor visitor)

Parameters

visitor IAstVisitor

AcceptVisitor<T>(IAstVisitor<T>)

public override T AcceptVisitor<T>(IAstVisitor<T> visitor)

Parameters

visitor IAstVisitor<T>

Returns

T

Type Parameters

T

AcceptVisitor<T, S>(IAstVisitor<T, S>, T)

public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)

Parameters

visitor IAstVisitor<T, S>
data T

Returns

S

Type Parameters

T
S

DoMatch(AstNode, Match)

protected override bool DoMatch(AstNode other, Match match)

Parameters

other AstNode
match Match

Returns

bool