private bool ShouldSerializeSettingsKey() { IPersistComponentSettings component = this.Component as IPersistComponentSettings; if (component == null) { return(false); } return(this.settingsKeyExplicitlySet || (component.SaveSettings && !string.IsNullOrEmpty(this.SettingsKey))); }
private bool ShouldSerializeSettingsKey() { IPersistComponentSettings component = base.Component as IPersistComponentSettings; return(((component != null) && component.SaveSettings) && (this.SettingsKey != null)); }