예제 #1
0
파일: Quote.cs 프로젝트: golf1052/QuotesApp
        public override int GetHashCode()
        {
            int hashCode = submitter.GetHashCode() +
                           room.GetHashCode() +
                           favorites.GetHashCode();

            foreach (Blurb blurb in blurbs)
            {
                hashCode += blurb.blurb.GetHashCode() + blurb.misattributedTo.GetHashCode();
            }

            return(hashCode);
        }