Esempio n. 1
0
        public void Transform(UnknownUnit a)
        {
            if (a.unitsystem != Unit)
            {
                throw new InvalidOperationException($"This is NOT a {Name} [{Unit}] as expected! Your Unit is a [{a.unitsystem}] ");
            }

            Unit           = a.unitsystem;
            ValueLocalUnit = a.baseUnit.ValueLocalUnit;
        }
 public double As(UnknownUnit a) => baseUnit.As(a.baseUnit);