コード例 #1
0
        /// <summary>
        /// Return the hash code of this object.
        /// </summary>
        /// <returns>The hash code of this object.</returns>
        public override Int32 GetHashCode()
        {
            unchecked
            {
                return(GeoLocation.GetHashCode() * 3 ^

                       (Name.HasValue
                            ? Name.GetHashCode()
                            : 0));
            }
        }