C#C
C#9mo ago
gönnyd

Switch Expressions

Im trying to convert different numbers in a switch expression while switching over a Type and noticed a strange behavior, that when I do an int.Parse(...) Im actually getting a double out of the function, see my example here: https://dotnetfiddle.net/QrgZqP why is this designed this way?
Test your C# code online with .NET Fiddle code editor.
Was this page helpful?