コード例 #1
0
ファイル: PowerSet.cs プロジェクト: patrickhuber/city-of-info
        public override int GetHashCode()
        {
            var hashCode = 1316660549;

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(DisplayName);

            hashCode = hashCode * -1521134295 + Archetype.GetHashCode();
            hashCode = hashCode * -1521134295 + SetType.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ImageName);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(FullName);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(SetName);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Description);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(SubName);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ClassType);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(TrunkSet);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(LinkSecondary);

            hashCode = hashCode * -1521134295 + EqualityComparer <MutuallyExclusiveGroup[]> .Default.GetHashCode(MutuallyExclusiveGroups);

            return(hashCode);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            var hashCode = -1823152004;

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(DisplayName);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ShortName);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(StringId);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Description);

            hashCode = hashCode * -1521134295 + SetType.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Image);

            hashCode = hashCode * -1521134295 + MinLevel.GetHashCode();
            hashCode = hashCode * -1521134295 + MaxLevel.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <int[]> .Default.GetHashCode(Enhancements);

            hashCode = hashCode * -1521134295 + EqualityComparer <Bonus[]> .Default.GetHashCode(Bonuses);

            hashCode = hashCode * -1521134295 + EqualityComparer <SpecialBonus[]> .Default.GetHashCode(SpecialBonuses);

            return(hashCode);
        }