Beispiel #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((_lat != null ? _lat.GetHashCode() : 0) * 397) ^ (_lng != null ? _lng.GetHashCode() : 0));
     }
 }
Beispiel #2
0
        public override int GetHashCode()
        {
            unchecked
            {
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
                return(((_lat != null ? _lat.GetHashCode() : 0) * 397) ^ (_lng == null ? 0 : _lng.GetHashCode()));

#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
            }
        }