Remove instances of System.Linq to reduce GC allocation at runtime
I have been using Shapes as a critical part of our VR game, for which I need to minimize GC allocations during gameplay. After inspecting the GC allocations, I noticed that Shapes is using System.Linq as a shortcut in several spots. However, this creates GC (JacksonDunstan.com | Just How Much Garbage Does LINQ Create?), so I would like to request that the code be refactored to use for / foreach loops instead of the System.Linq shortcuts. I can definitely do this myself for my own use case, but figured it would be useful for folks in general.
EDIT: Specifically the one that was causing me issues was StrArrEquals in RenderState.cs. I looked at the other ones, it's possible that the ones in Polyline could be removed too, but I don't use those so not sure how often that's called.