Поделиться через


Expression.Switch Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

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.

Overload List

  Name Description
Public methodStatic member Switch(Expression, array<SwitchCase[]) Creates a SwitchExpression that represents a switch statement without a default case.
Public methodStatic member Switch(Expression, Expression, array<SwitchCase[]) Creates a SwitchExpression that represents a switch statement that has a default case.
Public methodStatic member Switch(Expression, Expression, MethodInfo, IEnumerable<SwitchCase>) Creates a SwitchExpression that represents a switch statement that has a default case.
Public methodStatic member Switch(Expression, Expression, MethodInfo, array<SwitchCase[]) Creates a SwitchExpression that represents a switch statement that has a default case.
Public methodStatic member Switch(Type, Expression, Expression, MethodInfo, IEnumerable<SwitchCase>) Creates a SwitchExpression that represents a switch statement that has a default case.
Public methodStatic member Switch(Type, Expression, Expression, MethodInfo, array<SwitchCase[]) Creates a SwitchExpression that represents a switch statement that has a default case..

Top