Ejemplo n.º 1
0
 /// <summary>
 /// Calculdates hash code for prim construction data
 /// </summary>
 /// <returns>The has</returns>
 public override int GetHashCode()
 {
     return(profileCurve.GetHashCode()
            ^ PathCurve.GetHashCode()
            ^ PathEnd.GetHashCode()
            ^ PathRadiusOffset.GetHashCode()
            ^ PathSkew.GetHashCode()
            ^ PathScaleX.GetHashCode()
            ^ PathScaleY.GetHashCode()
            ^ PathShearX.GetHashCode()
            ^ PathShearY.GetHashCode()
            ^ PathTaperX.GetHashCode()
            ^ PathTaperY.GetHashCode()
            ^ PathBegin.GetHashCode()
            ^ PathTwist.GetHashCode()
            ^ PathTwistBegin.GetHashCode()
            ^ PathRevolutions.GetHashCode()
            ^ ProfileBegin.GetHashCode()
            ^ ProfileEnd.GetHashCode()
            ^ ProfileHollow.GetHashCode()
            ^ Material.GetHashCode()
            ^ State.GetHashCode()
            ^ PCode.GetHashCode());
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates HashCode for use in equality comparison
        /// </summary>
        public override int GetHashCode()
        {
            string location = $"{Country ?? ""}{State ?? ""}{County ?? ""}{City ?? ""}{PostalCode ?? ""}{StreetAddress ?? ""}{FipsCode ?? ""}{PCode.GetHashCode()}{NpaNxx.GetHashCode()}";

            return(location.GetHashCode());
        }