InstaTax.Core.DomainObjects.OtherIncomeItem.Equals C# (CSharp) Method

Equals() public method

public Equals ( OtherIncomeItem other ) : bool
other OtherIncomeItem
return bool
        public virtual bool Equals(OtherIncomeItem other)
        {
            if (ReferenceEquals(null, other)) return false;
            if (ReferenceEquals(this, other)) return true;
            return other.Id == Id && Equals(other.Name, Name) && other.Amount.Equals(Amount);
        }

Same methods

OtherIncomeItem::Equals ( object obj ) : bool