示例#1
0
 /// <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));
 }
示例#2
0
 public override int GetHashCode()
 {
     return(UnLocode.GetHashCode());
 }
示例#3
0
 public static Location Lookup(UnLocode unLocode)
 {
     return(ALL[unLocode]);
 }