/// <summary> /// Create a top-level settings composer having no parent and make a copy of the /// given XML converter /// </summary> public SettingsComposer(SettingsXmlConverter converter) { XmlConverter = (converter == null) ? new SettingsXmlConverter() : new SettingsXmlConverter(converter); }
/// <summary> /// Create a copy of the given converter /// </summary> /// <param name="source"></param> internal SettingsXmlConverter(SettingsXmlConverter source) { SettingsXElementName = source.SettingsXElementName; ItemXElementName = source.ItemXElementName; KeyXAttributeName = source.KeyXAttributeName; ValueXAttributeName = source.ValueXAttributeName; StoreItemValueAsXAttribute = source.StoreItemValueAsXAttribute; TextEncoding = source.TextEncoding; }
/// <summary> /// Create a child settings composer with the given parent /// </summary> /// <param name="parent"></param> public SettingsComposer(SettingsComposer parent) { if (parent == null) { XmlConverter = new SettingsXmlConverter(); return; } XmlConverter = parent.XmlConverter; Parent = parent; }
/// <summary> /// Create a top-level settings composer having no parent /// </summary> public SettingsComposer() { XmlConverter = new SettingsXmlConverter(); }