Example #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((FontFile != null ? FontFile.GetHashCode() : 0) * 397) ^ (Name != null ? Name.GetHashCode() : 0));
     }
 }
Example #2
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Returns HashCode</returns>
 public override int GetHashCode()
 {
     return(String.Format("{0}|{1}|{2}|{3}|{4}",
                          BackgroundFile?.GetHashCode() ?? 0,
                          ColorFile?.GetHashCode() ?? 0,
                          FontFile?.GetHashCode() ?? 0,
                          Name?.GetHashCode() ?? 0,
                          this.Version.GetHashCode()
                          ).GetHashCode());
 }