Expression.Switch Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates a SwitchExpression that represents a switch statement.

Namespace:   System.Linq.Expressions
Assembly:  System.Core (in System.Core.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticSwitch(Expression, Expression, MethodInfo, IEnumerable<SwitchCase>)

Creates a SwitchExpression that represents a switch statement that has a default case.

System_CAPS_pubmethodSystem_CAPS_staticSwitch(Expression, Expression, MethodInfo, SwitchCase[])

Creates a SwitchExpression that represents a switch statement that has a default case.

System_CAPS_pubmethodSystem_CAPS_staticSwitch(Expression, Expression, SwitchCase[])

Creates a SwitchExpression that represents a switch statement that has a default case.

System_CAPS_pubmethodSystem_CAPS_staticSwitch(Expression, SwitchCase[])

Creates a SwitchExpression that represents a switch statement without a default case.

System_CAPS_pubmethodSystem_CAPS_staticSwitch(Type, Expression, Expression, MethodInfo, IEnumerable<SwitchCase>)

Creates a SwitchExpression that represents a switch statement that has a default case.

System_CAPS_pubmethodSystem_CAPS_staticSwitch(Type, Expression, Expression, MethodInfo, SwitchCase[])

Creates a SwitchExpression that represents a switch statement that has a default case..

Return to top
Show: