Example #1
0
        protected override void Build(IConfiguration parent, DictionaryEntry entry)
        {
            var child = ConfigurationHelper.CreateChild(parent, item, null);

            child.Attributes[key] = entry.Key.ToString();
            ConfigurationHelper.SetConfigurationValue(child, _value, entry.Value, null, true);
        }
Example #2
0
        protected virtual void Build(IConfiguration parent, DictionaryEntry entry)
        {
            string keyName = entry.Key.ToString();

            ConfigurationHelper.SetConfigurationValue(parent, _item, entry.Value, null, false);
            IConfiguration child = parent.Children[parent.Children.Count - 1];

            child.Attributes[_key] = keyName;
        }
Example #3
0
        public void Build(IConfiguration parent, object configValue)
        {
            var list = (ICollection)configValue;

            if (!string.IsNullOrEmpty(_name))
            {
                var config = ConfigurationHelper.CreateChild(parent, _name, null);
                parent = config;
            }

            foreach (object child in list)
            {
                ConfigurationHelper.SetConfigurationValue(parent, _item, child, _value, false);
            }
        }
Example #4
0
 public void Build(IConfiguration parent, object configValue)
 {
     ConfigurationHelper.SetConfigurationValue(parent, _name, configValue, _value, false);
 }