public override int GetHashCode() { int num1 = 0; num1 ^= this.HorizontalAlignment.GetHashCode(); num1 ^= this.VerticalAlignment.GetHashCode(); num1 ^= this.PatternStyle.GetHashCode(); num1 ^= this.PatternBackgroundColor.GetHashCode(); num1 ^= this.PatternForegroundColor.GetHashCode(); num1 = Utilities.RotateLeft(num1, (byte)8); num1 ^= this.Indent; num1 ^= this.Rotation; num1 ^= this.Locked.GetHashCode(); num1 ^= this.FormulaHidden.GetHashCode(); num1 ^= this.WrapText.GetHashCode(); num1 ^= this.ShrinkToFit.GetHashCode(); num1 = Utilities.RotateLeft(num1, (byte)8); num1 ^= this.NumberFormat.GetHashCode(); num1 ^= this.FontData.GetHashCode(); num1 ^= this.BordersUsed.GetHashCode(); for (int num2 = 0; num2 < 4; num2++) { if ((this.BordersUsed & CellBorder.MultipleFromIndividualBorder((IndividualBorder)num2)) != MultipleBorders.None) { num1 ^= this.BorderStyle[num2].GetHashCode(); num1 ^= this.BorderColor[num2].GetHashCode(); } } if ((this.BordersUsed & MultipleBorders.Diagonal) != MultipleBorders.None) { num1 ^= this.BorderStyle[4].GetHashCode(); num1 ^= this.BorderColor[4].GetHashCode(); } return(num1); }
public override int GetHashCode() { int num1 = 0; num1 ^= this.Name.GetHashCode(); num1 ^= this.Color.GetHashCode(); num1 ^= this.Weight; num1 ^= this.Size; num1 ^= this.Italic.GetHashCode(); num1 = Utilities.RotateLeft(num1, (byte)6); num1 ^= this.Strikeout.GetHashCode(); num1 ^= this.ScriptPosition.GetHashCode(); return(num1 ^ this.UnderlineStyle.GetHashCode()); }
internal static int RotateLeft(int val, byte count) { uint num1 = Utilities.RotateLeft((uint)val, count); return(num1.GetHashCode()); }