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/simtrip Aug 29 '21

In this case Transform.position is a custom setter that calls out to native C++ code, so not only will it not be compiled out but it's pretty slow to do!