public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == this)
            {
                return(true);
            }

            return(obj is CatalogMeasurementUnit other &&
                   ((MeasurementUnit == null && other.MeasurementUnit == null) || (MeasurementUnit?.Equals(other.MeasurementUnit) == true)) &&
                   ((Precision == null && other.Precision == null) || (Precision?.Equals(other.Precision) == true)));
        }
        public override int GetHashCode()
        {
            int hashCode = 1544642162;

            if (MeasurementUnit != null)
            {
                hashCode += MeasurementUnit.GetHashCode();
            }

            if (Precision != null)
            {
                hashCode += Precision.GetHashCode();
            }

            return(hashCode);
        }
 protected void ToString(List <string> toStringOutput)
 {
     toStringOutput.Add($"MeasurementUnit = {(MeasurementUnit == null ? "null" : MeasurementUnit.ToString())}");
     toStringOutput.Add($"Precision = {(Precision == null ? "null" : Precision.ToString())}");
 }