'Is there a function to find range of numbers within a ObservableCollection?

Currently to find a specific value I do:

MyClass myclass = MyObservableList.FirstOrDefault(x => x.value == 5.54m);

However I want to be able to set a margin, instead of just looking for 5.54m, I want it to be a range of 5.53-5.55. Is there an easy way of doing that?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source