示例#1
0
        // загрузить набор правил из xml-конфигурации

        // добавить конвертер строки
        #region Public Methods and Operators

        /// <summary>
        /// The add string converter.
        /// </summary>
        /// <param name="converter">
        /// The converter.
        /// </param>
        public void AddStringConverter(StringConverterBase converter)
        {
            if (converters == null)
            {
                converters = new Collection <StringConverterBase>();
            }

            converters.Add(converter);
        }
示例#2
0
 /// <summary>
 /// The add allowed fields.
 /// </summary>
 /// <param name="converter">
 /// The converter.
 /// </param>
 /// <param name="xmlNode">
 /// The xml node.
 /// </param>
 private static void AddAllowedFields(StringConverterBase converter, XElement xmlNode)
 {
     converter.AllowedFields.AddFields(XmlHelper.RetrieveAttribute(xmlNode, "ТолькоПоля", trimToNull: true));
 }