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); }
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; }
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); } }
public void Build(IConfiguration parent, object configValue) { ConfigurationHelper.SetConfigurationValue(parent, _name, configValue, _value, false); }