Example #1
0
 public static decimal ToMetric(ImperialWeight weight)
 {
     if (weight == null)
     {
         throw new ArgumentNullException(nameof(weight));
     }
     return(weight.TotalKilos);
 }
Example #2
0
        public static decimal ToKilosFromPounds(decimal pounds)
        {
            var imperial = ImperialWeight.FromPounds(pounds);

            return(imperial.TotalKilos);
        }
Example #3
0
        public static decimal ToKilosFromOunces(decimal ounces)
        {
            var imperial = ImperialWeight.FromOunces(ounces);

            return(imperial.TotalKilos);
        }
Example #4
0
 public static decimal ToKilos(ImperialWeight result)
 {
     return(result.TotalKilos);
 }