I have a list with over a million objects in it, trying to find the fastest way to search through it
问题 I have a list that stores well over a million objects within it. I need to look through the list and update the objects found through the below query as efficiently as possible. I was thinking of using a Dictionary or HashSet, but I'm relatively new to C# and could not figure out how to implement these other two approaches. My current code is simply a LINQ statement searching through an IList. public IList<LandObject> landObjects = new List<LandObject>(); var lObjsToUpdate = from obj in