Expression that represents a switch, which is a conditional statement with multiple branches.
Namespace: PostSharp.Reflection.MethodBody
Assembly: PostSharp.dll
Syntax
public interface ISwitchExpression : IExpression, IMethodBodyElementRemarks
This interface represents the MSIL switch statement, not the C#
statement. The main difference is that switch cases have no value: the value of a switch case is equal to
its position in the list of Targets.
Properties
| Name | Description |
|---|---|
| Condition | Gets the condition expression. |
| Targets | Gets the list of target blocks. |