Пример #1
0
 // dedicated type
 public static Risk CalculateRiskProfile(Age age)
 => (age < 60) ? Risk.Low : Risk.Medium;
Пример #2
0
 Risk CalculateRiskProfile(Age age, bool smoker)
 => (age < 60)
     ? Risk.Low
     : (smoker) ? Risk.High : Risk.Medium;