Proper syntax for pattern matching with less than greater than - C#