Пример #1
0
        public void add_attr(string name, string val)
        {
            nano_attr attr = find_attr(name);

            if (attr == null)
            {
                _attrs.Add(new nano_attr(name, value));
            }
            else
            {
                attr.value = val;
            }
        }
Пример #2
0
 public string get_attr(string name, bool also_val = false)
 {
     nano_attr a = find_attr(name); return(a != null ? a.value : (also_val ? _value : ""));
 }