예제 #1
0
 /// <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);
 }
예제 #2
0
 /// <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;
 }
예제 #3
0
        /// <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;
        }
예제 #4
0
 /// <summary>
 /// Create a top-level settings composer having no parent
 /// </summary>
 public SettingsComposer()
 {
     XmlConverter = new SettingsXmlConverter();
 }