예제 #1
0
        public override bool Equals(object obj)
        {
            bool istrue = EqualityComparer <List <Chapter> > .Default.Equals(Chapters, ((Course)obj).Chapters);

            return(obj is Course course &&
                   Chapters.SequenceEqual(course.Chapters) &&
                   Title == course.Title &&
                   Slug == course.Slug);
        }