Example #1
0
        public override int GetHashCode()
        {
            int hash = base.GetHashCode();

            if (StarIdentifier != null)
            {
                hash ^= StarIdentifier.GetHashCode();
            }
            if (!string.IsNullOrEmpty(ERBridgeIdentifier))
            {
                hash ^= ERBridgeIdentifier.GetHashCode();
            }

            hash ^= Position.GetHashCode();

            return(hash);
        }
Example #2
0
 public bool Equals(Portal other) =>
 StarIdentifier.Equals(other.StarIdentifier) && ERBridgeIdentifier.Equals(other.ERBridgeIdentifier) &&
 Position.Equals(other.Position);