public override int GetHashCode() { unchecked { int hashCode = RightToLeft ? 1231 : 1237; hashCode = (hashCode * 397) ^ (LineLimit ? 1231 : 1237); hashCode = (hashCode * 397) ^ Angle.GetHashCode(); hashCode = (hashCode * 397) ^ FirstTabOffset.GetHashCode(); hashCode = (hashCode * 397) ^ DistanceBetweenTabs.GetHashCode(); hashCode = (hashCode * 397) ^ (int)HotkeyPrefix; hashCode = (hashCode * 397) ^ (int)Trimming; return(hashCode); } }
protected bool Equals(bitsTextOptions other) { return(RightToLeft == other.RightToLeft && LineLimit == other.LineLimit && Angle.Equals(other.Angle) && FirstTabOffset.Equals(other.FirstTabOffset) && DistanceBetweenTabs.Equals(other.DistanceBetweenTabs) && HotkeyPrefix == other.HotkeyPrefix && Trimming == other.Trimming); }