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

            if (ContextName.Length != 0)
            {
                hash ^= ContextName.GetHashCode();
            }
            if (PredName.Length != 0)
            {
                hash ^= PredName.GetHashCode();
            }
            if (PivotName.Length != 0)
            {
                hash ^= PivotName.GetHashCode();
            }
            if (Branch != 0)
            {
                hash ^= Branch.GetHashCode();
            }
            if (valuesDef_ != null)
            {
                hash ^= ValuesDef.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ContextName.Length != 0)
            {
                hash ^= ContextName.GetHashCode();
            }
            if (ParallelIterations != 0)
            {
                hash ^= ParallelIterations.GetHashCode();
            }
            if (BackProp != false)
            {
                hash ^= BackProp.GetHashCode();
            }
            if (SwapMemory != false)
            {
                hash ^= SwapMemory.GetHashCode();
            }
            if (PivotName.Length != 0)
            {
                hash ^= PivotName.GetHashCode();
            }
            if (PivotForPredName.Length != 0)
            {
                hash ^= PivotForPredName.GetHashCode();
            }
            if (PivotForBodyName.Length != 0)
            {
                hash ^= PivotForBodyName.GetHashCode();
            }
            hash ^= loopExitNames_.GetHashCode();
            hash ^= loopEnterNames_.GetHashCode();
            if (valuesDef_ != null)
            {
                hash ^= ValuesDef.GetHashCode();
            }
            if (MaximumIterationsName.Length != 0)
            {
                hash ^= MaximumIterationsName.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }