Exemple #1
0
        public XmlConfigBuilder Setting <TValue>(string elemName, Expression <Func <TValue> > propSelector)
        {
            var setting = new XmlSetting(elemName);

            setting.Initialize(propSelector);
            _rootSetting.Children.Add(setting);
            return(this);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }