c# switch statement is return suitable to replace break
That’s fine. The point is that the end of a case block should be unreachable – which it is here, because you’ve returned. Why are you returning new string(new char[0]) rather than just “” or string.Empty though? If you’re trying to make sure it’s a different string each time, you’ll actually run into a very … Read more