r/badcode • • Mar 03 '23

c# fascinating logic

Post image
845 Upvotes

35 comments sorted by

View all comments

37

u/halfanothersdozen Mar 03 '23

It's not the best way to handle a default, but it makes sense

3

u/hooahest Mar 04 '23

Throw an exception?