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); }
public bool Equals(Portal other) => StarIdentifier.Equals(other.StarIdentifier) && ERBridgeIdentifier.Equals(other.ERBridgeIdentifier) && Position.Equals(other.Position);