Itenso.TimePeriod.DateDiff.Equals C# (CSharp) Метод

Equals() публичный Метод

public Equals ( object obj ) : bool
obj object
Результат bool
        public override bool Equals( object obj )
        {
            if ( obj == this )
            {
                return true;
            }
            if ( obj == null || GetType() != obj.GetType() )
            {
                return false;
            }

            DateDiff comp = (DateDiff)obj;
            return calendar == comp.calendar &&
                yearBaseMonth == comp.yearBaseMonth &&
                firstDayOfWeek == comp.firstDayOfWeek &&
                date1 == comp.date1 &&
                date2 == comp.date2 &&
                difference == comp.difference;
        }