c# switch case with or condition
C#
int i = 5;
switch (i)
{
case(1):
case(2):
Console.WriteLine(i);
break;
default:
break;
}
Also in C#:
- Title
- c# delay
- Category
- C#
- Title
- insert new item listview c#
- Category
- C#
- Title
- using in c#
- Category
- C#
- Title
- rotate player unity
- Category
- C#
- Title
- c# get list of all class fields
- Category
- C#
- Title
- c# enum default
- Category
- C#
- Title
- find negative version of integer in c#
- Category
- C#
- Title
- how to change player cursor c# script unity
- Category
- C#
- Title
- to list c#
- Category
- C#
- Title
- .net core convert keycollection to array
- Category
- C#
- Title
- unity 2d top down movement
- Category
- C#
- Title
- asp.net core task iactionresult
- Category
- C#
- Title
- object escape player unity
- Category
- C#
- Title
- c# superclass constructor
- Category
- C#
- Title
- c# find duplicates in list
- Category
- C#
- Title
- c# push numbers to array
- Category
- C#
- Title
- C# move form without border
- Category
- C#
- Title
- Could not load file or assembly 'Ubiety.Dns.Core, Version=2.2.1.0
- Category
- C#
- Title
- c# append to file
- Category
- C#
- Title
- c# list string return concatenate
- Category
- C#
- Title
- how to crouch in unity
- Category
- C#
- Title
- wpf get name of clicked element
- Category
- C#
- Title
- Linq - Random Elements
- Category
- C#
- Title
- unity detect number key
- Category
- C#
- Title
- c# round number up
- Category
- C#
- Title
- override Microsoft.AspNetCore.Authorization.AuthorizeAttribute
- Category
- C#
- Title
- c# get hwid
- Category
- C#
- Title
- c# error "The name 'ViewBag' does not exist in the current context"
- Category
- C#
- Title
- unity mobile controls
- Category
- C#
- Title
- check if current time is in the morning c#
- Category
- C#
- Title
- unity to integer
- Category
- C#
- Title
- font family behind code uwp c#
- Category
- C#
- Title
- check if two timespans intersect c#
- Category
- C#
- Title
- c# length 2d array
- Category
- C#
- Title
- onmouseclick unity
- Category
- C#
- Title
- unity rotate towards mouse
- Category
- C#
- Title
- pop up element from specific index in array
- Category
- C#
- Title
- unity cast float to int
- Category
- C#
- Title
- unity get scrollbar value
- Category
- C#
- Title
- c# sql duplicate key exception
- Category
- C#
- Title
- The type or namespace name 'Scrollbar' could not be found
- Category
- C#
- Title
- c# type of generic is string
- Category
- C#
- Title
- unity round
- Category
- C#
- Title
- unity rigid body variable
- Category
- C#
- Title
- how to clear console in c#
- Category
- C#
- Title
- get setter c# model
- Category
- C#
- Title
- declare string array c# without size
- Category
- C#
- Title
- unity rotation
- Category
- C#
- Title
- c# compile into an exe
- Category
- C#
- Title
- c# get all inherited classes of a class
- Category
- C#
- Title
- when do i need to end a sentence with ; in c#
- Category
- C#
- Title
- what is using static in c#
- Category
- C#
- Title
- IEnumerator
- Category
- C#
- Title
- how to declare a string c#
- Category
- C#
- Title
- constructor in inherited class c#
- Category
- C#
- Title
- c# change colour of console
- Category
- C#
- Title
- c# append array
- Category
- C#
- Title
- what is the and in c#
- Category
- C#
- Title
- how to get value from object in c#
- Category
- C#
- Title
- how to use variables in c#
- Category
- C#
- Title
- c# AllowSynchronousIO to true
- Category
- C#
- Title
- delay in unity
- Category
- C#
- Title
- C# get all child classes of a class
- Category
- C#
- Title
- example HttpClient c# Post
- Category
- C#
- Title
- check if network is available c#
- Category
- C#
- Title
- Move player on planets in unity 2d
- Category
- C#
- Title
- c# mailmessage set sender name
- Category
- C#
- Title
- c# math to radiant
- Category
- C#
- Title
- c sharp substring
- Category
- C#
- Title
- c# remove last value from list
- Category
- C#
- Title
- c# winform remove button border
- Category
- C#
- Title
- idbset sqlquery
- Category
- C#
- Title
- interpolate rotation unity3d
- Category
- C#
- Title
- c# resize image keep aspect ratio
- Category
- C#
- Title
- HashSet C# append
- Category
- C#
- Title
- how to join array indexes with comma in c#
- Category
- C#
- Title
- wpf textblock line break code behind
- Category
- C#
- Title
- c# udpclient receive buffer size
- Category
- C#
- Title
- unity get all children
- Category
- C#
- Title
- c# warning CS0108
- Category
- C#
- Title
- c# index in select
- Category
- C#
- Title
- : ? conditioanl statement c#
- Category
- C#
- Title
- countdownevent
- Category
- C#
- Title
- how do i limit the amount of prefabs in unity using c# script
- Category
- C#
- Title
- c# relaxed boolean cast
- Category
- C#
- Title
- c# keyboard enter
- Category
- C#
- Title
- c# loop datatable rows
- Category
- C#
- Title
- unity rb.addexplosionforce 2d
- Category
- C#
- Title
- unity movetowards 2d
- Category
- C#
- Title
- 2d character controller unity
- Category
- C#
- Title
- C# enum
- Category
- C#
- Title
- c# inotifypropertychanged best practices
- Category
- C#
- Title
- autofixture ignore property
- Category
- C#
- Title
- unity load text resources from subfolder
- Category
- C#
- Title
- c# check if string is all numbers
- Category
- C#
- Title
- unity access child
- Category
- C#
- Title
- c# get desktop path
- Category
- C#
- Title
- unity add component
- Category
- C#
- Title
- How to search for a string from readline in c#
- Category
- C#
- Title
- c# object to json string
- Category
- C#