示例#1
0
 /// <summary>
 /// Serves as a hash function for a <see cref="Eto.Drawing.Font"/> 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()
 {
     return(FamilyName.GetHashCode() ^ Platform.GetHashCode() ^ Size.GetHashCode() ^ FontStyle.GetHashCode());
 }
示例#2
0
 /// <summary>
 /// Gets the hash code for this rectangle
 /// </summary>
 /// <returns>Hash code value for this rectangle</returns>
 public override int GetHashCode()
 {
     return(location.GetHashCode() ^ size.GetHashCode());
 }
示例#3
0
 /// <summary>
 /// Serves as a hash function for a <see cref="Eto.Drawing.Font"/> 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()
 {
     return(FamilyName.GetHashCode() ^ Generator.GetHashCode() ^ Size.GetHashCode() ^ FontStyle.GetHashCode());
 }