public bool Equals(CalcLoadTypeDto other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(_lti.Equals(other._lti) && Name == other.Name && UnitOfPower == other.UnitOfPower && UnitOfSum == other.UnitOfSum && ConversionFactor.Equals(other.ConversionFactor) && ShowInCharts == other.ShowInCharts && Guid == other.Guid && FileName == other.FileName);
        }
Example #2
0
 protected bool Equals(NumericValue <TUnit> other)
 {
     return(Value.Equals(other.Value) && (Unit.GetType() == other.Unit.GetType()) && ConversionFactor.Equals(other.ConversionFactor) && string.Equals(Abbreviation, other.Abbreviation));
 }