I have a list of values like this
1000, 20400 22200, 24444
The ranges don\'t overlap.
What I want to do is have a c# function that can
I'd try the simplest option first, and optimize if that doesn't meet your needs.
class Range { int Lower { get; set; } int Upper { get; set; } } List.FirstOrDefault(r => i >= r.Lower && i <= r.Upper);