示例#1
0
    public static XChangeLog Update(string path, string value)
    {
        var log = PathMover.Update(root, path, value);

        XChangeLogBank.GiveBack(log);
        return(log);
    }
示例#2
0
    public static List <XChangeLog> UpdateAll(List <XTransaction> list)
    {
        var ret = new List <XChangeLog>();

        foreach (var t in list)
        {
            var log = PathMover.Update(root, t.path, t.val);
            ret.Add(log);
        }
        foreach (var log in ret)
        {
            XChangeLogBank.GiveBack(log);
        }
        return(ret);
    }