It’s OK to use LINQ for operations that you know with certainty are rare (in terms of frames), such as only when a user presses a button or only during initialization of a scene, etc. and for which the use of LINQ greatly improves the readability of the code for other team members. But for anything that might run frequently, especially anything that might run every frame, it’s best to avoid it in order to avoid putting pressure on the garbage collector. Even for those more rare cases I mentioned, it’s still better on the whole not to put that extra pressure on the GC anyway.
5 Likes