public static decimal ToMetric(ImperialWeight weight) { if (weight == null) { throw new ArgumentNullException(nameof(weight)); } return(weight.TotalKilos); }
public static decimal ToKilosFromPounds(decimal pounds) { var imperial = ImperialWeight.FromPounds(pounds); return(imperial.TotalKilos); }
public static decimal ToKilosFromOunces(decimal ounces) { var imperial = ImperialWeight.FromOunces(ounces); return(imperial.TotalKilos); }
public static decimal ToKilos(ImperialWeight result) { return(result.TotalKilos); }