public override int GetHashCode() { unchecked { var hashCode = Picture?.Length.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ (MouseIcon?.Length.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (TextProps?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ MinorVersion.GetHashCode(); hashCode = (hashCode * 397) ^ MajorVersion.GetHashCode(); hashCode = (hashCode * 397) ^ (PropMask?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (ForeColor?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (BackColor?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (int)VariousPropertyBits; hashCode = (hashCode * 397) ^ (Caption?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (int)PicturePosition; hashCode = (hashCode * 397) ^ (int)MousePointer; hashCode = (hashCode * 397) ^ (Accelerator?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Size?.GetHashCode() ?? 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = MinorVersion.GetHashCode(); hashCode = (hashCode * 397) ^ MajorVersion.GetHashCode(); hashCode = (hashCode * 397) ^ (PropMask?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (ForeColor?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (BackColor?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (int)VariousPropertyBits; hashCode = (hashCode * 397) ^ (Caption?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (int)PicturePosition; hashCode = (hashCode * 397) ^ (int)MousePointer; hashCode = (hashCode * 397) ^ (Accelerator?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Size?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Picture?.Length.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (MouseIcon?.Length.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (TextProps?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (int)MaxLength; hashCode = (hashCode * 397) ^ (int)BorderStyle; hashCode = (hashCode * 397) ^ (ScrollBars?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ DisplayStyle.GetHashCode(); hashCode = (hashCode * 397) ^ (PasswordChar?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (int)ListWidth; hashCode = (hashCode * 397) ^ BoundColumn.GetHashCode(); hashCode = (hashCode * 397) ^ TextColumn.GetHashCode(); hashCode = (hashCode * 397) ^ ColumnCount.GetHashCode(); hashCode = (hashCode * 397) ^ ListRows.GetHashCode(); hashCode = (hashCode * 397) ^ ColumnInfoCount.GetHashCode(); hashCode = (hashCode * 397) ^ MatchEntry.GetHashCode(); hashCode = (hashCode * 397) ^ ListStyle.GetHashCode(); hashCode = (hashCode * 397) ^ ShowDropButtonWhen.GetHashCode(); hashCode = (hashCode * 397) ^ DropButtonStyle.GetHashCode(); hashCode = (hashCode * 397) ^ MultiSelect.GetHashCode(); hashCode = (hashCode * 397) ^ (BorderColor?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (int)SpecialEffect; hashCode = (hashCode * 397) ^ (Value?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (GroupName?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Remainder?.Length.GetHashCode() ?? 0); return(hashCode); } }