Пример #1
0
 public bool Equals(IrregularSalaryPeriod other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(PeriodStart.Equals(other.PeriodStart) && PeriodEnd.Equals(other.PeriodEnd) && SalaryAmount == other.SalaryAmount && CurrencyCode == other.CurrencyCode);
 }
Пример #2
0
        public override bool Equals(object obj)
        {
            StatementRecord other = obj as StatementRecord;

            if (other != null)
            {
                return((!string.IsNullOrEmpty(SourceFactId) && SourceFactId.Equals(other.SourceFactId)) ||
                       (Title.Equals(other.Title) && PeriodStart.Equals(other.PeriodStart) && PeriodEnd.Equals(other.PeriodEnd) && (FactId != null && FactId.Equals(other.FactId))));
            }
            else
            {
                return(false);
            }
        }