PostSharpAPI ReferencePost­Sharp.​Reflection.​Method­BodyIConditional­Expression
Open sandboxFocus

IConditionalExpression Interface

Conditional expression, corresponding to the if keyword in C#.

Namespace: PostSharp.Reflection.MethodBody
Assembly: PostSharp.dll
Syntax
public interface IConditionalExpression : IExpression, IMethodBodyElement

Properties

Name Description
Condition

Gets the condition expression (the return type does not need to be bool. Zero and null values are considered false).

IfFalse

Gets the expression executed when Condition evaluates to false, zero, or null.

IfTrue

Gets the expression executed when Condition evaluates to true or a non-null and non-zero vale.