Example code missing decimal literal value suffix "M"
Chapter: 5
Page Number: 244
Section Title: Enhancements to pattern matching in C# 9 or later
Problem to fix: FirstClassPassenger { AirMiles: > 35000 } => 1500,
Suggested solution: FirstClassPassenger { AirMiles: > 35000 } => 1500M,
Other useful information e.g. OS, coding tools, and so on:
Example code missing decimal literal value suffix "M" Chapter: 5 Page Number: 244 Section Title: Enhancements to pattern matching in C# 9 or later Problem to fix:
FirstClassPassenger { AirMiles: > 35000 } => 1500,
Suggested solution:FirstClassPassenger { AirMiles: > 35000 } => 1500M,
Other useful information e.g. OS, coding tools, and so on: