public override int GetHashCode() { unchecked { var hash = 17; hash = hash * 23 + Fields.GetHashCode(); hash = hash * 23 + Properties.GetHashCode(); hash = hash * 23 + Methods.GetHashCode(); hash = hash * 23 + Constructors.GetHashCode(); hash = hash * 23 + Gettable.GetHashCode(); hash = hash * 23 + Settable.GetHashCode(); hash = hash * 23 + Indexers.GetHashCode(); hash = hash * 23 + Events.GetHashCode(); hash = hash * 23 + Inherited.GetHashCode(); hash = hash * 23 + Targeted.GetHashCode(); hash = hash * 23 + NonTargeted.GetHashCode(); hash = hash * 23 + Public.GetHashCode(); hash = hash * 23 + NonPublic.GetHashCode(); hash = hash * 23 + ReadOnly.GetHashCode(); hash = hash * 23 + WriteOnly.GetHashCode(); hash = hash * 23 + Extensions.GetHashCode(); hash = hash * 23 + Operators.GetHashCode(); hash = hash * 23 + Conversions.GetHashCode(); hash = hash * 23 + Parameters.GetHashCode(); hash = hash * 23 + Obsolete.GetHashCode(); hash = hash * 23 + OpenConstructedGeneric.GetHashCode(); hash = hash * 23 + TypeInitializers.GetHashCode(); return(hash); } }
public ConfigurationWindow(ProfileManager p, Control sPanel, Gettable <TProfileSettings> s, string initialProfile, string title) { this.initialProfile = initialProfile; InitializeComponent(); this.Text = title + " configuration dialog"; this.profileManager = p; this.s = s; System.Drawing.Size size = Size; size.Height += sPanel.Height - panel1.Height; size.Width += Math.Max(sPanel.Width - panel1.Width, 0); Size = size; sPanel.Dock = DockStyle.Fill; panel1.Controls.Add(sPanel); }
public static SettingsGetter <TSettings> FromGettable(Gettable <TSettings> input) { return(new SettingsGetter <TSettings>(delegate { return input.Settings; })); }
public ConfigurationWindow(ProfileManager p, Control sPanel, Gettable <TProfileSettings> s, string initialProfile) : this(p, sPanel, s, initialProfile, new TSettings().getSettingsType()) { }