Exemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((FieldId.GetHashCode() * 397) ^
                (Language == null ? 0 : StringComparer.OrdinalIgnoreCase.GetHashCode(Language)) ^
                Version.GetHashCode());
     }
 }
Exemplo n.º 2
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Serves as a hash function for a particular type.
 /// </summary>
 /// <returns>
 /// A hash code for the current <see cref="T:System.Object"/>.
 /// </returns>
 /// <filterpriority>2</filterpriority>
 /// ------------------------------------------------------------------------------------
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (FieldId != null ? FieldId.GetHashCode() : 0);
         result = (result * 397) ^ (Type != null ? Type.GetHashCode() : 0);
         result = (result * 397) ^ (ValueAsString != null ? ValueAsString.GetHashCode() : 0);
         return(result);
     }
 }
Exemplo n.º 3
0
 public override int GetHashCode()
 {
     return(FieldId.GetHashCode());
 }
Exemplo n.º 4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (StoryQuestId != 0UL)
            {
                hash ^= StoryQuestId.GetHashCode();
            }
            if (QuestNameId.Length != 0)
            {
                hash ^= QuestNameId.GetHashCode();
            }
            if (FieldId != 0UL)
            {
                hash ^= FieldId.GetHashCode();
            }
            if (RequiredConditionId != 0L)
            {
                hash ^= RequiredConditionId.GetHashCode();
            }
            if (SortBy != 0UL)
            {
                hash ^= SortBy.GetHashCode();
            }
            if (AreaSpotId != 0UL)
            {
                hash ^= AreaSpotId.GetHashCode();
            }
            if (ItemSetId != 0UL)
            {
                hash ^= ItemSetId.GetHashCode();
            }
            if (QuestGroupId != 0UL)
            {
                hash ^= QuestGroupId.GetHashCode();
            }
            if (FieldType != 0)
            {
                hash ^= FieldType.GetHashCode();
            }
            if (ScheduleId.Length != 0)
            {
                hash ^= ScheduleId.GetHashCode();
            }
            if (PlayCountLimit != 0L)
            {
                hash ^= PlayCountLimit.GetHashCode();
            }
            if (ChapterOpenAnimation != false)
            {
                hash ^= ChapterOpenAnimation.GetHashCode();
            }
            if (Difficulty != 0)
            {
                hash ^= Difficulty.GetHashCode();
            }
            if (WeekScheduleKeyword.Length != 0)
            {
                hash ^= WeekScheduleKeyword.GetHashCode();
            }
            if (Debug != false)
            {
                hash ^= Debug.GetHashCode();
            }
            if (DebugCategory != 0L)
            {
                hash ^= DebugCategory.GetHashCode();
            }
            if (RewardType != 0)
            {
                hash ^= RewardType.GetHashCode();
            }
            if (ShowcasedItemId != 0L)
            {
                hash ^= ShowcasedItemId.GetHashCode();
            }
            if (CharaQuestListItemId != 0L)
            {
                hash ^= CharaQuestListItemId.GetHashCode();
            }
            if (IsEvolutionQuest != false)
            {
                hash ^= IsEvolutionQuest.GetHashCode();
            }
            if (QuestType != 0)
            {
                hash ^= QuestType.GetHashCode();
            }
            if (IsSearchQuest != false)
            {
                hash ^= IsSearchQuest.GetHashCode();
            }
            if (NextQuestId != 0UL)
            {
                hash ^= NextQuestId.GetHashCode();
            }
            if (U24 != 0UL)
            {
                hash ^= U24.GetHashCode();
            }
            if (U25 != 0UL)
            {
                hash ^= U25.GetHashCode();
            }
            if (U26 != 0UL)
            {
                hash ^= U26.GetHashCode();
            }
            if (U27 != 0UL)
            {
                hash ^= U27.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 5
0
 public override int GetHashCode()
 {
     return(OfferId.GetHashCode() + FieldId.GetHashCode());
 }