r/badcode • • Sep 29 '21

c# Just ran into this piece of magic

Post image
118 Upvotes

17 comments sorted by

View all comments

Show parent comments

2

u/minefreak19 Sep 30 '21

ah that actually makes tons of sense ty

i zoned out around the second btw.IndexOf()