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 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(string elemName, Func <string> getValue, Action <string> setValue) { var setting = new XmlSetting(elemName); setting.Initialize(getValue, setValue); _rootSetting.Children.Add(setting); return(this); }