예제 #1
0
        public override int GetHashCode()
        {
            int num = base.GetType().GetHashCode();

            using (List <Player> .Enumerator enumerator = this.Player.GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    Player current = enumerator.get_Current();
                    num ^= current.GetHashCode();
                }
            }
            if (this.HasFactoryId)
            {
                num ^= this.FactoryId.GetHashCode();
            }
            if (this.HasProperties)
            {
                num ^= this.Properties.GetHashCode();
            }
            if (this.HasObjectId)
            {
                num ^= this.ObjectId.GetHashCode();
            }
            if (this.HasRequestId)
            {
                num ^= this.RequestId.GetHashCode();
            }
            if (this.HasAdvancedNotification)
            {
                num ^= this.AdvancedNotification.GetHashCode();
            }
            return(num);
        }
예제 #2
0
        public override int GetHashCode()
        {
            int num = base.GetType().GetHashCode();

            num ^= this.GameHandle.GetHashCode();
            using (List <Player> .Enumerator enumerator = this.Player.GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    Player current = enumerator.get_Current();
                    num ^= current.GetHashCode();
                }
            }
            if (this.HasAdvancedNotification)
            {
                num ^= this.AdvancedNotification.GetHashCode();
            }
            return(num);
        }
        public override int GetHashCode()
        {
            int num = base.GetType().GetHashCode();

            num ^= this.RequestId.GetHashCode();
            if (this.HasFactoryId)
            {
                num ^= this.FactoryId.GetHashCode();
            }
            using (List <Player> .Enumerator enumerator = this.Player.GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    Player current = enumerator.get_Current();
                    num ^= current.GetHashCode();
                }
            }
            return(num);
        }