Exemplo n.º 1
0
 // dedicated type
 public static Risk CalculateRiskProfile(Age age)
 => (age < 60) ? Risk.Low : Risk.Medium;
Exemplo n.º 2
0
 Risk CalculateRiskProfile(Age age, bool smoker)
 => (age < 60)
     ? Risk.Low
     : (smoker) ? Risk.High : Risk.Medium;