Exemplo n.º 1
0
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                int hashCode = 41;

                if (Domain != null)
                {
                    hashCode = hashCode * 59 + Domain.GetHashCode();
                }

                if (AccessToken != null)
                {
                    hashCode = hashCode * 59 + AccessToken.GetHashCode();
                }

                if (Style != null)
                {
                    hashCode = hashCode * 59 + Style.GetHashCode();
                }

                if (Center != null)
                {
                    hashCode = hashCode * 59 + Center.GetHashCode();
                }

                if (Zoom != null)
                {
                    hashCode = hashCode * 59 + Zoom.GetHashCode();
                }

                if (Bearing != null)
                {
                    hashCode = hashCode * 59 + Bearing.GetHashCode();
                }

                if (Pitch != null)
                {
                    hashCode = hashCode * 59 + Pitch.GetHashCode();
                }

                if (Layers != null)
                {
                    hashCode = hashCode * 59 + Layers.GetHashCode();
                }

                if (UiRevision != null)
                {
                    hashCode = hashCode * 59 + UiRevision.GetHashCode();
                }

                return(hashCode);
            }
        }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Latitude.GetHashCode();
         hashCode = (hashCode * 397) ^ Longitude.GetHashCode();
         hashCode = (hashCode * 397) ^ Accuracy.GetHashCode();
         hashCode = (hashCode * 397) ^ Altitude.GetHashCode();
         hashCode = (hashCode * 397) ^ VerticalAccuracy.GetHashCode();
         hashCode = (hashCode * 397) ^ Bearing.GetHashCode();
         hashCode = (hashCode * 397) ^ Speed.GetHashCode();
         return(hashCode);
     }
 }
Exemplo n.º 3
0
 public override int GetHashCode()
 {
     return(Bearing.GetHashCode() ^ Target.GetHashCode() ^ Tilt.GetHashCode() ^ Zoom.GetHashCode());
 }