Wednesday, October 3, 2018

C# Switch Statement

C# switch case statement is a selection statement. It executes code of one of the conditions based on a pattern match with the specified match expression. The switch statement is an alternate to using the if..else statement when options are more than a few. The code examples in this article demonstrate various usages of switch..case statement in C# and .NET Core.

source https://www.c-sharpcorner.com/article/c-sharp-switch-statement/

No comments:

Post a Comment