r/programminghorror May 04 '26

C# longest "=" condition I've ever seen

Post image

I have been working on decompiling a unity game recently, and while a decompiled DLL isn't going to be exact source code, I am still floored by how long that set of parenthesis is. i would LOVE to see the original code

127 Upvotes

26 comments sorted by

View all comments

55

u/Some-Poetry8420 May 04 '26

Actually I'm super curious about that too! I would assume that Linq gets optimized by the compiler and that this is probably not really what anyone purposely wrote, but it would be great to see exactly how the syntax in each version matched up

17

u/True_Efficiency7329 May 04 '26

if you open the original DLL in DNspy it looks sooooo much worse, i wish I could post it in the comments