Inheritance: ValueObjectBase
Beispiel #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++;
        }
Beispiel #2
0
        public string GetValue(string key)
        {
            string result = null;

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

            return(result);
        }
Beispiel #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);
            }
        }
Beispiel #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);
            }
        }
Beispiel #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++;
        }