Switch Method
TOC
Collapse the table of content
Expand the table of content

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.

  NameDescription
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

Show:
© 2017 Microsoft