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); }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { int hash = 41; // Suitable nullity checks hash = hash * 59 + Id.GetHashCode(); if (ContextName != null) { hash = hash * 59 + ContextName.GetHashCode(); } hash = hash * 59 + IsDefault.GetHashCode(); if (CodeName != null) { hash = hash * 59 + CodeName.GetHashCode(); } if (Value != null) { hash = hash * 59 + Value.GetHashCode(); } if (DisplaySortOrder != null) { hash = hash * 59 + DisplaySortOrder.GetHashCode(); } return(hash); } }
public override int GetHashCode() { if (null == ContextName) { return(0); } else { return(ContextName.GetHashCode()); } }
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); }
public override int GetHashCode() { unchecked { return(((_values != null ? _values.GetHashCode() : 0) * 397) ^ (ContextName != null ? ContextName.GetHashCode() : 0)); } }