예제 #1
0
        // override object.Equals
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            CollectionE c = (CollectionE)obj;

            return(Type == c.Type &&
                   Name.EqualsExT(c.Name) &&
                   NameCn.EqualsExT(c.NameCn) &&
                   Collects.SequenceEqualExT(c.Collects));
        }
예제 #2
0
        // override object.Equals
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            Mono c = (Mono)obj;

            return(base.Equals(obj) &&
                   NameCn.EqualsExT(c.NameCn) &&
                   Comment == c.Comment &&
                   Collects == c.Collects);
        }
예제 #3
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));
        }
예제 #4
0
파일: Episode.cs 프로젝트: Teachoc/Bangumi
        // override object.Equals
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            Episode e = (Episode)obj;

            return(Id == e.Id &&
                   Type == e.Type &&
                   Sort == e.Sort &&
                   Comment == e.Comment &&
                   Url.EqualsExT(e.Url) &&
                   Name.EqualsExT(e.Name) &&
                   NameCn.EqualsExT(e.NameCn) &&
                   Duration.EqualsExT(e.Duration) &&
                   AirDate.EqualsExT(e.AirDate) &&
                   Desc.EqualsExT(e.Desc) &&
                   Status.EqualsExT(e.Status));
        }