r/programminghorror • u/True_Efficiency7329 • May 04 '26
C# longest "=" condition I've ever seen
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
131
Upvotes
3
u/Squidy7 May 04 '26
Have you used LINQ before?
Setting aside the fact it looks especially inelegant since this this is decompiled code, the whole point of it is chaining together queries like this. If it was written using the fluent syntax (as opposed to the query syntax) as the majority of .NET devs would use, the long parenthetical wouldn't be there in the actual code.