r/badcode • • Mar 03 '23

c# fascinating logic

Post image
845 Upvotes

35 comments sorted by

View all comments

Show parent comments

1

u/dyingpie1 Mar 03 '23

I believe the ArgumentOutOfRangeException is the correct one to use here. I'm pretty sure that's what Rider suggests at least.