There is a collection
List<Plane> planesAll = PlaneCollection.GetPlane(); Selected position from event
selectedPlaneBR = planes[e.Position].BR; So this BR in the collection can be from 1.0 to 10.0 and the options can be 1.0 , 1.3 , 1.7 , 2.0 , 2.3 , 2.7 , 3.0 , etc. up to 10.0 . It is necessary to make so that when choosing a user option, LINQ returns all collection objects with a spread of +-1 . That is, if you select 2.3 you must return the collection, in which there will be all the elements from 1.3 to 3.3 . This collection is transferred to the ListView . My method:
var planevar = from p in planesAll where p.BR==selectedPlaneBR select p; planespotential = planevar.ToList<Plane>(); How to make all the conditions be fulfilled and the result that can be written in .ToList<T>() returned?