PostSharp4.3//API Reference/Post­Sharp.​Reflection.​Syntax Namespace/IConditional­Expression Interface
IConditionalExpression Interface
Conditional expression, corresponding to the if keyword in C#.

Namespace: PostSharp.Reflection.Syntax
Assembly: PostSharp (in PostSharp.dll) Version: (
public interface IConditionalExpression : IExpression, 

The IConditionalExpression type exposes the following members.

Public propertyCondition
Gets the condition expression (the return type does not need to be bool. Zero and null values are considered false).
Public propertyIfFalse
Gets the expression executed when Condition evaluates to false, zero, or null.
Public propertyIfTrue
Gets the expression executed when Condition evaluates to true or a non-null and non-zero vale.
Public propertyParentElement
Gets the parent element in the tree.
(Inherited from ISyntaxElement.)
Public propertyParentMethodBody
Gets the parent method body.
(Inherited from ISyntaxElement.)
Public propertyReturnType
Gets the type of the return value of the current expression, or Void if the expression does not return anything (i.e. for pure instructions, for instance a goto or throw instruction).
(Inherited from IExpression.)
Public propertySyntaxElementKind
Gets the kind of syntax element.
(Inherited from ISyntaxElement.)
See Also