Esempio n. 1
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = Id != null?Id.GetHashCode() : 0;

                hashCode = hashCode * 397 ^ (Title != null ? Title.GetHashCode() : 0);
                hashCode = hashCode * 397 ^ (Body != null ? Body.GetHashCode() : 0);
                hashCode = hashCode * 397 ^ (Image != null ? Image.GetHashCode() : 0);
                hashCode = hashCode * 397 ^ (TileImage != null ? TileImage.GetHashCode() : 0);
                hashCode = hashCode * 397 ^ Hidden.GetHashCode();
                hashCode = hashCode * 397 ^ Spotlight.GetHashCode();
                hashCode = hashCode * 397 ^ (Type != null ? Type.GetHashCode() : 0);
                hashCode = hashCode * 397 ^ (EntryType != null ? EntryType.GetHashCode() : 0);
                return(hashCode);
            }
        }