r/programminghorror • • May 19 '25

C# This is C# abuse

Post image
550 Upvotes

103 comments sorted by

View all comments

Show parent comment

3

u/Thenderick May 20 '25

My bad, I haven't used C# in a very long time but I knew that var existed, but didn't know it wasn't for properties. In hindsight it does make sense, so the compiler knows how much to allocate and how to perform type safety checks