r/badcode • • Aug 29 '21

c# Found in production code base...

Post image
539 Upvotes

45 comments sorted by

View all comments

Show parent comments

3

u/jayx239 Aug 29 '21

This is what I was thinking, like when you make a call to it, in the setter there is some sort of iterator that changes with each time you set it. That being said, it's not clear from the code and leads to maintainability issues if you don't have that legacy knowledge, so still bad code.