public static BloodPressureUnitCategory Categorise(BloodPressureUnit unit, BloodPressureUnits asUnit) { switch (asUnit) { case BloodPressureUnits.Diastolic: return(CategoriseDiastolicValue(unit)); case BloodPressureUnits.Systolic: return(CategoriseSystolicValue(unit)); } throw new NotSupportedException("Unsupported BloodPressureUnits specified"); }
public BloodPressureUnitCategory Category(BloodPressureUnits asUnit) => Categorise(this, asUnit);