Given an array {1,4,5,6,7,4,7,8}
How to check if there are values between 4 and 7 ?
given.Any(n => n > 4 && n < 7);
Feel free to change the > and < to fall in line with your requirements for exclusivity.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With