public void SaveSettings(bool includeServiceComponents) { SaveSettings(); if (!includeServiceComponents) return; IPersistSettings typedComponent; lock (m_serviceComponents) { foreach (object component in m_serviceComponents) { typedComponent = component as IPersistSettings; if ((object)typedComponent != null) typedComponent.SaveSettings(); } } }