示例#1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (ProcessorNum != 0)
            {
                hash ^= ProcessorNum.GetHashCode();
            }
            if (Affinity.Length != 0)
            {
                hash ^= Affinity.GetHashCode();
            }
            if (Cpuset.Length != 0)
            {
                hash ^= Cpuset.GetHashCode();
            }
            if (ProcessorPolicy.Length != 0)
            {
                hash ^= ProcessorPolicy.GetHashCode();
            }
            if (ProcessorPrio != 0)
            {
                hash ^= ProcessorPrio.GetHashCode();
            }
            hash ^= tasks_.GetHashCode();
            return(hash);
        }
示例#2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Cpuset.Length != 0)
            {
                hash ^= Cpuset.GetHashCode();
            }
            if (Policy.Length != 0)
            {
                hash ^= Policy.GetHashCode();
            }
            if (Prio != 0)
            {
                hash ^= Prio.GetHashCode();
            }
            return(hash);
        }