public XmlConfigBuilder Settings(string elemName, Func <IEnumerable <string> > getValues, Action <List <string> > setValues) { var setting = new XmlSetting(elemName); setting.Initialize(getValues, setValues); _rootSetting.Children.Add(setting); return(this); }
public XmlConfigBuilder Setting <TValue>(string elemName, Expression <Func <TValue> > propSelector) { var setting = new XmlSetting(elemName); setting.Initialize(propSelector); _rootSetting.Children.Add(setting); return(this); }
public XmlConfigBuilder Setting(string elemName, Func <string> getValue, Action <string> setValue) { var setting = new XmlSetting(elemName); setting.Initialize(getValue, setValue); _rootSetting.Children.Add(setting); return(this); }
public XmlConfigBuilder Block(string elemName, Action <IXmlBlockInitializer> initializer) { var setting = new XmlSetting(elemName); _rootSetting.Children.Add(setting); var builder = new XmlConfigBuilder(setting); initializer(builder); return(this); }
public XmlConfig(XmlSetting rootSetting) { _rootSetting = rootSetting; }
private XmlConfigBuilder(XmlSetting rootSetting) { _rootSetting = rootSetting; }