コード例 #1
0
        public override bool Equals(object obj)
        {
            if (!(obj is Title title))
            {
                return(false);
            }

            if (this.Name != title.Name)
            {
                return(false);
            }

            if (this.AlterName != title.AlterName)
            {
                return(false);
            }

            if (this.Names != title.Names)
            {
                return(false);
            }

            if (this.Description != title.Description)
            {
                return(false);
            }

            if (this.Status != title.Status)
            {
                return(false);
            }

            if (this.StatusTranslate != title.StatusTranslate)
            {
                return(false);
            }

            if (this.DateOfRelease != title.DateOfRelease)
            {
                return(false);
            }

            if (!Cover.Equals(title.Cover))
            {
                return(false);
            }

            if (!Uri.Equals(title.Uri))
            {
                return(false);
            }

            if (Genres.Equals(title.Genres))
            {
                return(false);
            }

            if (Authors.Equals(title.Authors))
            {
                return(false);
            }

            if (Chapters.Equals(title.Chapters))
            {
                return(false);
            }

            return(true);
        }