/// <summary> /// Saves the object children in the specified configuration. /// </summary> /// <param name="config">The config <see cref="AddressSpaceDataBase"/>.</param> /// <param name="parentKey">The parent key.</param> /// <param name="root">if set to <c>true</c> root element.</param> public virtual void Save(AddressSpaceDataBase config, int parentKey, bool root) { System.Diagnostics.Debug.Assert(config != null, "Configuration data set cannot be null"); foreach (ISave br in Nodes) { br.Save(config, parentKey, root); } }
/// <summary> /// Saves the configuration specified in the <see cref="AddressSpaceDataBase"/>. /// </summary> /// <param name="config">The configuration <see cref="AddressSpaceDataBase"/>.</param> public void Save(AddressSpaceDataBase config) { Save(config, int.MinValue, true); }