コード例 #1
0
        public static Doc Change(Doc doc, Guid editID, StringItem before, string value)
        {
            var id    = before.ID;
            var after = new StringItem(id, value);
            var edit  = new ChangeStringEdit(editID, before, after);

            doc = doc.Apply(edit);
            return(doc);
        }
コード例 #2
0
 internal ChangeStringEdit(Guid editID, StringItem before, StringItem after)
 {
     ID     = editID;
     Before = before;
     After  = after;
 }
コード例 #3
0
 public CreateStringEdit(Guid editID, Guid stringID, string value = "")
 {
     ID            = editID;
     NewStringItem = new StringItem(stringID, value);
 }
コード例 #4
0
 public static Doc Change(Doc doc, StringItem before, string value)
 {
     doc = doc.NewID(out var editID);
     return(Change(doc, editID, before, value));
 }