コード例 #1
0
        public override int GetHashCode()
        {
            var hashCode = 1745518476;

            hashCode = hashCode * -1521134295 + EqualityComparer <CommandStructure> .Default.GetHashCode(Parent);

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

            hashCode = hashCode * -1521134295 + HasShort.GetHashCode();
            hashCode = hashCode * -1521134295 + IsExclusive.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string[]> .Default.GetHashCode(Others);

            return(hashCode);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (RaidSeed != 0L)
            {
                hash ^= RaidSeed.GetHashCode();
            }
            if (RaidSpawnMs != 0L)
            {
                hash ^= RaidSpawnMs.GetHashCode();
            }
            if (RaidBattleMs != 0L)
            {
                hash ^= RaidBattleMs.GetHashCode();
            }
            if (RaidEndMs != 0L)
            {
                hash ^= RaidEndMs.GetHashCode();
            }
            if (raidPokemon_ != null)
            {
                hash ^= RaidPokemon.GetHashCode();
            }
            if (RaidLevel != 0)
            {
                hash ^= RaidLevel.GetHashCode();
            }
            if (Complete != false)
            {
                hash ^= Complete.GetHashCode();
            }
            if (IsExclusive != false)
            {
                hash ^= IsExclusive.GetHashCode();
            }
            if (IsRaidHidden != false)
            {
                hash ^= IsRaidHidden.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #3
0
 public override IEnumerable <StateVariable> GetState()
 {
     return(new[] {
         new StateVariable
         {
             Name = "QueueName",
             Value = QueueName,
             Type = StateVariable.StateType.Input
         },
         new StateVariable
         {
             Name = "IsDurable",
             Value = IsDurable.ToString(),
             Type = StateVariable.StateType.Input
         },
         new StateVariable
         {
             Name = "IsExclusive",
             Value = IsExclusive.ToString(),
             Type = StateVariable.StateType.Input
         },
         new StateVariable
         {
             Name = "Message",
             Value = Message,
             Type = StateVariable.StateType.Input
         },
         new StateVariable
         {
             Name = "RabbitMQSourceResourceId",
             Value = RabbitMQSourceResourceId.ToString(),
             Type = StateVariable.StateType.Input
         }, new StateVariable
         {
             Name = "IsAutoDelete",
             Value = IsAutoDelete.ToString(),
             Type = StateVariable.StateType.Input
         },
         new StateVariable
         {
             Name = "Result",
             Value = Result,
             Type = StateVariable.StateType.Output
         }
     });
 }
コード例 #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ RabbitMQSourceResourceId.GetHashCode();
         hashCode = (hashCode * 397) ^ (QueueName != null ? QueueName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DisplayName != null ? DisplayName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsDurable.GetHashCode();
         hashCode = (hashCode * 397) ^ IsExclusive.GetHashCode();
         hashCode = (hashCode * 397) ^ IsAutoDelete.GetHashCode();
         hashCode = (hashCode * 397) ^ (Message != null ? Message.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Connection != null ? Connection.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Channel != null ? Channel.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (RabbitMQSource != null ? RabbitMQSource.GetHashCode() : 0);
         return(hashCode);
     }
 }
コード例 #5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Result != 0)
            {
                hash ^= Result.GetHashCode();
            }
            if (IsExclusive != false)
            {
                hash ^= IsExclusive.GetHashCode();
            }
            hash ^= items_.GetHashCode();
            hash ^= defaultRewards_.GetHashCode();
            if (Stardust != 0)
            {
                hash ^= Stardust.GetHashCode();
            }
            return(hash);
        }