[Solved] C# – optimize logic [closed]
Your question is not well-phrased. If your elem1 or elem2 is a single item you want to compare against, this is pretty easy. Just do a LINQ Where to find the items that match the criteria. Coordinates it = new Coordinates { lat = 5, lon = 5 }; var picked = list.Where(x => Math.Abs(x.lat … Read more