Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Expression.Switch Method

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
Public method Static member Switch(Expression, SwitchCase[]) Creates a SwitchExpression that represents a switch statement without a default case.
Public method Static member Switch(Expression, Expression, SwitchCase[]) Creates a SwitchExpression that represents a switch statement that has a default case.
Public method Static member Switch(Expression, Expression, MethodInfo, IEnumerable<SwitchCase>) Creates a SwitchExpression that represents a switch statement that has a default case.
Public method Static member Switch(Expression, Expression, MethodInfo, SwitchCase[]) Creates a SwitchExpression that represents a switch statement that has a default case.
Public method Static member Switch(Type, Expression, Expression, MethodInfo, IEnumerable<SwitchCase>) Creates a SwitchExpression that represents a switch statement that has a default case.
Public method Static member Switch(Type, Expression, Expression, MethodInfo, SwitchCase[]) Creates a SwitchExpression that represents a switch statement that has a default case..
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.