示例#1
0
        public Object QueryCopy(string path, out string foundPath)
        {
            Object a = CSOCore.QueryRef(_map, path, out foundPath, path_sep);

            if (a is Container c)
            {
                return(new CSO(c, path_sep));
            }
            else
            {
                return(a.DeepClone());
            }
        }
示例#2
0
        public Object Query(string path, out string found_path)
        {
            Object a = CSOCore.QueryRef(_map, path, out found_path, path_sep);

            if (a is Container c)
            {
                return(new CSOPtr(c, path_sep));
            }
            else
            {
                return(a);
            }
        }
示例#3
0
 public bool Update(string path, Object value) => CSOCore.Update(ref _map, path, path_sep, value);
示例#4
0
 public bool Delete(string path) => CSOCore.Delete(_map, path, path_sep);
示例#5
0
 public bool CopyOnUpdate(string path, Object value) => CSOCore.Update(ref _map, path, path_sep, value.DeepClone());