Inheritance: ValueObjectBase
Esempio n. 1
0
        public void Set(string comment)
        {
            var name = "#comment" + commentCount;
            var item = new IniItem(name, null, IniType.Empty, comment);

            configList.Add(name, item);

            commentCount++;
        }
Esempio n. 2
0
        public string GetValue(string key)
        {
            string result = null;

            if (Contains(key))
            {
                IniItem item = (IniItem)configList[key];
                result = item.Value;
            }

            return(result);
        }
Esempio n. 3
0
        public void Set(string key, string value, string comment = null) {
            IniItem item = null;

            if(Contains(key)) {
                item = (IniItem)configList[key];
                item.Value = value;
                item.Comment = comment;
            }
            else {
                item = new IniItem(key, value, IniType.Key, comment);
                configList.Add(key, item);
            }
        }
Esempio n. 4
0
        public void Set(string key, string value, string comment = null)
        {
            IniItem item = null;

            if (Contains(key))
            {
                item         = (IniItem)configList[key];
                item.Value   = value;
                item.Comment = comment;
            }
            else
            {
                item = new IniItem(key, value, IniType.Key, comment);
                configList.Add(key, item);
            }
        }
Esempio n. 5
0
        public void Set(string comment) {
            var name = "#comment" + commentCount;
            var item = new IniItem(name, null, IniType.Empty, comment);

            configList.Add(name, item);

            commentCount++;
        }