/// <summary> /// Sirve como la función hash predeterminada. /// </summary> /// <returns>Código hash para el objeto actual.</returns> public override int GetHashCode() { int hash = 17; // Un número primo int prime = 31; // Otro número primo. hash = hash * prime + MetadataItemName.GetHashCode(); hash = hash * prime + PdfPageN.GetHashCode(); hash = hash * prime + IsLastPage.GetHashCode(); hash = hash * prime + ((PdfRectangle == null) ? 0 : PdfRectangle.GetHashCode()); hash = hash * prime + (RegexPattern ?? "").GetHashCode(); hash = hash * prime + Position.GetHashCode(); hash = hash * prime + (SourceTypeName ?? "").GetHashCode(); hash = hash * prime + ((ColorFill == null) ? 0 : ColorFill.GetHashCode()); hash = hash * prime + ((ColorStroke == null) ? 0 : ColorStroke.GetHashCode()); hash = hash * prime + ((FontSize == null) ? 0 : FontSize.GetHashCode()); hash = hash * prime + ((FontType == null) ? 0 : FontType.GetHashCode()); return(hash); }
public override int GetHashCode() { return(name.GetHashCode() ^ style.GetHashCode() ^ fontType.GetHashCode()); }