Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (entityId_ != null)
            {
                hash ^= EntityId.GetHashCode();
            }
            if (Program.Length != 0)
            {
                hash ^= Program.GetHashCode();
            }
            if (TimestampPlayed != 0UL)
            {
                hash ^= TimestampPlayed.GetHashCode();
            }
            hash ^= attributes_.GetHashCode();
            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Counter != 0)
            {
                hash ^= Counter.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (HasEntityId)
            {
                hash ^= EntityId.GetHashCode();
            }
            if (HasProgram)
            {
                hash ^= Program.GetHashCode();
            }
            if (HasTimestampPlayed)
            {
                hash ^= TimestampPlayed.GetHashCode();
            }
            hash ^= attributes_.GetHashCode();
            if (HasId)
            {
                hash ^= Id.GetHashCode();
            }
            if (HasCounter)
            {
                hash ^= Counter.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }