Horje
multi case in c# Code Example
multi case in c#
switch (value)
{
   case var s when new[] { 1,2,3 }.Contains(s):
      // Do something
      break;
   case var s when new[] { 4,5,6 }.Contains(s):
      // Do something
      break;
   default:
      // Do the default
      break;
}




Csharp

Related
declare string array c# without size Code Example declare string array c# without size Code Example
remove control characters from string c# Code Example remove control characters from string c# Code Example
remove multiple items from list c# Code Example remove multiple items from list c# Code Example
JavaScriptSerializer() and convert to base64 Code Example JavaScriptSerializer() and convert to base64 Code Example
c# if break Code Example c# if break Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9