Expression.Switch Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Creates a SwitchExpression that represents a switch statement.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
| Name | Description | |
|---|---|---|
|
Switch(Expression, SwitchCase[]) | Creates a SwitchExpression that represents a switch statement without a default case. |
|
Switch(Expression, Expression, SwitchCase[]) | Creates a SwitchExpression that represents a switch statement that has a default case. |
|
Switch(Expression, Expression, MethodInfo, IEnumerable<SwitchCase>) | Creates a SwitchExpression that represents a switch statement that has a default case. |
|
Switch(Expression, Expression, MethodInfo, SwitchCase[]) | Creates a SwitchExpression that represents a switch statement that has a default case. |
|
Switch(Type, Expression, Expression, MethodInfo, IEnumerable<SwitchCase>) | Creates a SwitchExpression that represents a switch statement that has a default case. |
|
Switch(Type, Expression, Expression, MethodInfo, SwitchCase[]) | Creates a SwitchExpression that represents a switch statement that has a default case.. |
Show: