Exemplo n.º 1
0
        // override object.Equals
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            SubjectBase s = (SubjectBase)obj;

            return(Id == s.Id &&
                   Type == s.Type &&
                   AirWeekday == s.AirWeekday &&
                   Url.EqualsExT(s.Url) &&
                   Name.EqualsExT(s.Name) &&
                   NameCn.EqualsExT(s.NameCn) &&
                   Summary.EqualsExT(s.Summary) &&
                   AirDate.EqualsExT(s.AirDate) &&
                   Images.EqualsExT(s.Images));
        }
Exemplo n.º 2
0
        // override object.Equals
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            Blog b = (Blog)obj;

            return(Id == b.Id &&
                   Timestamp == b.Timestamp &&
                   Replies == b.Replies &&
                   Url.EqualsExT(b.Url) &&
                   Title.EqualsExT(b.Title) &&
                   Summary.EqualsExT(b.Summary) &&
                   Image.EqualsExT(b.Image) &&
                   DateLine.EqualsExT(b.DateLine) &&
                   User.EqualsExT(b.User));
        }