public override int GetHashCode() { unchecked { var hashCode = Color.GetHashCode(); hashCode = (hashCode * 397) ^ Width.GetHashCode(); hashCode = (hashCode * 397) ^ Height.GetHashCode(); hashCode = (hashCode * 397) ^ BackgroundColor.GetHashCode(); hashCode = (hashCode * 397) ^ BorderLeftColor.GetHashCode(); hashCode = (hashCode * 397) ^ BorderLeftWidth.GetHashCode(); hashCode = (hashCode * 397) ^ BorderRightColor.GetHashCode(); hashCode = (hashCode * 397) ^ BorderTopColor.GetHashCode(); hashCode = (hashCode * 397) ^ BorderBottomColor.GetHashCode(); hashCode = (hashCode * 397) ^ BorderRightWidth.GetHashCode(); hashCode = (hashCode * 397) ^ BorderTopWidth.GetHashCode(); hashCode = (hashCode * 397) ^ BorderBottomWidth.GetHashCode(); hashCode = (hashCode * 397) ^ Font.GetHashCode(); hashCode = (hashCode * 397) ^ FontSize.GetHashCode(); hashCode = (hashCode * 397) ^ HAlign.GetHashCode(); hashCode = (hashCode * 397) ^ VAlign.GetHashCode(); hashCode = (hashCode * 397) ^ IsLineThrough.GetHashCode(); hashCode = (hashCode * 397) ^ IsOverline.GetHashCode(); hashCode = (hashCode * 397) ^ IsUnderline.GetHashCode(); hashCode = (hashCode * 397) ^ IsItalic.GetHashCode(); hashCode = (hashCode * 397) ^ IsBold.GetHashCode(); hashCode = (hashCode * 397) ^ BorderBottomStyle.GetHashCode(); hashCode = (hashCode * 397) ^ BorderLeftStyle.GetHashCode(); hashCode = (hashCode * 397) ^ BorderRightStyle.GetHashCode(); hashCode = (hashCode * 397) ^ BorderTopStyle.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { int hashCode = 397; hashCode = (hashCode * 397) ^ (FontSize != null ? FontSize.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (LineHeight != null ? LineHeight.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { return(IsBold.GetHashCode() + IsItalic.GetHashCode() + IsStrikedOut.GetHashCode() + IsUnderlined.GetHashCode() + FontSize.GetHashCode() + (string.IsNullOrEmpty(BackgroundBrushString) ? 0 : BackgroundBrushString.GetHashCode()) + (string.IsNullOrEmpty(ForegroundBrushString) ? 0 : ForegroundBrushString.GetHashCode()) + (string.IsNullOrEmpty(FontFamilyString) ? 0 : FontFamilyString.GetHashCode())); }
public override int GetHashCode() { int hash = 17; hash = hash * 31 + FontSize.GetHashCode(); hash = hash * 31 + Content.GetHashCode(); hash = hash * 31 + BackgroundColor.GetHashCode(); return(hash); }
public override int GetHashCode() { var hashCode = 352033288; hashCode = hashCode * -1521134295 + FontFamily.GetHashCode(); hashCode = hashCode * -1521134295 + FontSize.GetHashCode(); hashCode = hashCode * -1521134295 + IsBold.GetHashCode(); return(hashCode); }
public override int GetHashCode() { unchecked { int hashCode = (TextColor != null ? TextColor.GetHashCode() : 0); hashCode = (hashCode * 397) ^ FontSize.GetHashCode(); hashCode = (hashCode * 397) ^ Bold.GetHashCode(); hashCode = (hashCode * 397) ^ Italic.GetHashCode(); hashCode = (hashCode * 397) ^ Alignment.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { int hashCode = FontFamily != null?FontFamily.GetHashCode() : 0; hashCode = (hashCode * 397) ^ FontSize.GetHashCode(); hashCode = (hashCode * 397) ^ NamedSize.GetHashCode(); hashCode = (hashCode * 397) ^ FontAttributes.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { return(Bold.GetHashCode() ^ Italic.GetHashCode() ^ (Int32)Underline ^ Strikethrough.GetHashCode() ^ (Int32)VerticalAlignment ^ Shadow.GetHashCode() ^ FontSize.GetHashCode() ^ FontColor.GetHashCode() ^ FontName.GetHashCode() ^ (Int32)FontFamilyNumbering); }
public override int GetHashCode() { var hashCode = 1158783753; hashCode = hashCode * -1521134295 + Bold.GetHashCode(); hashCode = hashCode * -1521134295 + Italic.GetHashCode(); hashCode = hashCode * -1521134295 + Underline.GetHashCode(); hashCode = hashCode * -1521134295 + Strikethrough.GetHashCode(); hashCode = hashCode * -1521134295 + VerticalAlignment.GetHashCode(); hashCode = hashCode * -1521134295 + Shadow.GetHashCode(); hashCode = hashCode * -1521134295 + FontSize.GetHashCode(); hashCode = hashCode * -1521134295 + FontColor.GetHashCode(); hashCode = hashCode * -1521134295 + StringComparer.InvariantCultureIgnoreCase.GetHashCode(FontName); hashCode = hashCode * -1521134295 + FontFamilyNumbering.GetHashCode(); hashCode = hashCode * -1521134295 + FontCharSet.GetHashCode(); return(hashCode); }
/// <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 + ((FillColor == null) ? 0 : FillColor.GetHashCode()); hash = hash * prime + ((StrokeColor == null) ? 0 : StrokeColor.GetHashCode()); hash = hash * prime + ((FontName == null) ? 0 : FontName.GetHashCode()); hash = hash * prime + ((FontSize == null) ? 0 : FontSize.GetHashCode()); return(hash); }
public MeasureKey( TextBlock source ) { FontStyle = source.FontStyle; TextWrapping = source.TextWrapping; FontWeight = source.FontWeight; Text = source.Text; FontFamily = source.FontFamily; FontSize = source.FontSize; MaxLines = source.MaxLines; TextTrimming = source.TextTrimming; TextAlignment = source.TextAlignment; LineHeight = source.LineHeight; LineStackingStrategy = source.LineStackingStrategy; CharacterSpacing = source.CharacterSpacing; TextDecorations = source.TextDecorations; _hashCode = Text?.GetHashCode() ?? 0 ^ FontFamily.GetHashCode() ^ FontSize.GetHashCode(); }
public override int GetHashCode() { int hashCode = 1133365354; hashCode = hashCode * -1521134295 + EqualityComparer <List <string> > .Default.GetHashCode(ProcessList); hashCode = hashCode * -1521134295 + Column.GetHashCode(); hashCode = hashCode * -1521134295 + Row.GetHashCode(); hashCode = hashCode * -1521134295 + Alpha.GetHashCode(); hashCode = hashCode * -1521134295 + FontSize.GetHashCode(); hashCode = hashCode * -1521134295 + Angle.GetHashCode(); hashCode = hashCode * -1521134295 + OutlineWeight.GetHashCode(); hashCode = hashCode * -1521134295 + IsShowComputerName.GetHashCode(); hashCode = hashCode * -1521134295 + IsShowMacAddr.GetHashCode(); hashCode = hashCode * -1521134295 + IsShowIPAddr.GetHashCode(); hashCode = hashCode * -1521134295 + IsShowLoginUser.GetHashCode(); hashCode = hashCode * -1521134295 + IsShowQrCode.GetHashCode(); hashCode = hashCode * -1521134295 + QrCodePos.GetHashCode(); hashCode = hashCode * -1521134295 + QrCodeAlpha.GetHashCode(); hashCode = hashCode * -1521134295 + QrCodeSize.GetHashCode(); hashCode = hashCode * -1521134295 + ChangePosDeltaTime.GetHashCode(); return(hashCode); }
/// <summary> /// Get the hash code for the object. /// </summary> /// <returns>Returns the hash code.</returns> public override int GetHashCode() { return(_type.GetHashCode() << 2 ^ _value.GetHashCode()); }
public override int GetHashCode() { return(type.GetHashCode() ^ unit.GetHashCode()); }
public override int GetHashCode() { return(FontSize.GetHashCode() ^ FontName.GetHashCode() ^ FontBold.GetHashCode() ^ FontColor.GetHashCode() ^ FGColor.GetHashCode() ^ Borders[0].GetHashCode() ^ Borders[1].GetHashCode() ^ Borders[2].GetHashCode() ^ Borders[3].GetHashCode() ^ CellWidth.GetHashCode() ^ CellHeight.GetHashCode() ^ HorizontalAlignment.GetHashCode() ^ VerticalAlignment.GetHashCode() ^ WrapText.GetHashCode()); }
public override int GetHashCode() { return(FontFamily.GetHashCode() + FontSize.GetHashCode() + IsBold.GetHashCode()); }
/// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public override int GetHashCode() { return(HashCodeCombiner.CombineHashCodes(type.GetHashCode(), value.GetHashCode())); }
/// <summary> /// Returns a hash code for this instance. /// </summary> /// <returns> /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. /// </returns> public override int GetHashCode() { return(FontFamily.Source.GetHashCode() ^ FontSize.GetHashCode() ^ FontStyle.GetHashCode() ^ FontWeight.GetHashCode()); }
public override int GetHashCode() { return(LGuiHash.Combine(FontName.GetHashCode(), FontSize.GetHashCode(), Bold.GetHashCode())); }