Ejemplo n.º 1
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (Width != 0)
        {
            hash ^= Width.GetHashCode();
        }
        if (Height != 0)
        {
            hash ^= Height.GetHashCode();
        }
        if (CellWidth != 0F)
        {
            hash ^= CellWidth.GetHashCode();
        }
        if (CellHeight != 0F)
        {
            hash ^= CellHeight.GetHashCode();
        }
        hash ^= mapCells_.GetHashCode();
        return(hash);
    }
Ejemplo n.º 2
0
 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());
 }