Exemple #1
0
        public override int GetHashCode()
        {
            unchecked {
                int hash = 17;
                if (DefaultCard != default(string))
                {
                    hash = hash * 23 + DefaultCard.GetHashCode();
                }
                if (Email != default(string))
                {
                    hash = hash * 23 + Email.GetHashCode();
                }
                if (Description != default(string))
                {
                    hash = hash * 23 + Description.GetHashCode();
                }
                if (Metadata != default(IDictionary <string, object>))
                {
                    hash = hash * 23 + Metadata.GetHashCode();
                }
                if (Cards != default(ScopedList <Card>))
                {
                    hash = hash * 23 + Cards.GetHashCode();
                }

                return(hash);
            }
        }
Exemple #2
0
        public override int GetHashCode()
        {
            unchecked {
                int hash = 17;
                hash = hash * 23 + DefaultCard.GetHashCode();
                hash = hash * 23 + Email.GetHashCode();
                hash = hash * 23 + Description.GetHashCode();
                hash = hash * 23 + Cards.GetHashCode();

                return(hash);
            }
        }