Can we use condition in switch case in C#?

You can’t add condition to a case . Case clause has to be a compile time constant. Instead you can use an if statement inside the case statement.22 May 2017

Sizin İçin Seçtik  K ne demek sayı?

Leave a Reply

Your email address will not be published. Required fields are marked *