private static int ToAgeMonths(DecimalWithUnits age)
 {
     return(age == null ? 0 : (int)age.Value);
 }
Esempio n. 2
0
 private static decimal parseDimensionValue(DecimalWithUnits dimension)
 {
     return(dimension == null ? 0 : dimension.Value);
 }
Esempio n. 3
0
 private static string parseDimensionUnit(DecimalWithUnits dimension)
 {
     return(dimension == null ? string.Empty : dimension.Units);
 }
 private static int ToAgeMonths(DecimalWithUnits age) {
     return age == null ? 0 : (int) age.Value;
 }