C# : Why switch for enum accepts implicit conversion to 0 but no for any other integer?
C# : Why switch for enum accepts implicit conversion to 0 but no for any other integer?
To Access My Live Chat Page,
On Google, Search for "hows tech developer connect"
I promised to reveal a secret feature to you, and now it's time to share it.
This is a YouTube's feature which works on Desktop.
First, Ensure that the video is playing before proceeding.
After that, type the word 'awesome' on your keyboard.
Your YouTube progress indicator will turn into a shimmering rainbow.
A quick introduction about me,
Greetings, my name is Delphi.
I am here to assist you in getting the answers you need.
C# : Why switch for enum accepts implicit conversion to 0 but no for any other integer?
If you have more specific queries, please feel free to reach out through comments or chat.
If you have an answer or any additional information on the answer, please leave a comment below.
A 'heart' from me is a way of showing appreciation for your answer.
0 : other integer? no for any for Why C# switch implicit to accepts conversion but enum