Export (0) Print
Expand All

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

Community Additions

ADD
Show:
© 2014 Microsoft