Share via

How to fix the error

BenTam 1,806 Reputation points
2021-12-18T15:10:34.833+00:00

Dear All,

Could any body tell me how to fix the error? Please note that the 'else' part is now empty. I'll insert some code in it.

158742-error.gif

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

0 comments No comments

1 answer

Sort by: Most helpful
  1. BenTam 1,806 Reputation points
    2021-12-18T15:25:01.367+00:00

    Putting a 'break' after the last case would solve the problem.

    Was this answer helpful?

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.