/// <summary> /// Value objects compare by the values of their attributes, they don't have an identity. /// </summary> /// <param name="other">The other value object.</param> /// <returns>true if the given value object's and this value object's attributes are the same.</returns> public virtual bool SameIdentityAs(Location other) { return(UnLocode.SameValueAs(other.UnLocode)); }
public override int GetHashCode() { return(UnLocode.GetHashCode()); }
public static Location Lookup(UnLocode unLocode) { return(ALL[unLocode]); }