/// <summary> /// Serves as a hash function for a <see cref="Culture"/> object. /// </summary> /// <returns>A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a /// hash table.</returns> public override int GetHashCode() { unchecked { return(((Id != null ? Id.GetHashCode() : 0) * 397) ^ (Name != null ? Name.GetHashCode() : 0) ^ (Description != null ? Description.GetHashCode() : 0) ^ (TextureSet != null ? TextureSet.GetHashCode() : 0) ^ PlaceNameGenerator.GetHashCode() ^ (PlaceNameSchema != null ? PlaceNameSchema.GetHashCode() : 0)); } }