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); }
internal ChangeStringEdit(Guid editID, StringItem before, StringItem after) { ID = editID; Before = before; After = after; }
public CreateStringEdit(Guid editID, Guid stringID, string value = "") { ID = editID; NewStringItem = new StringItem(stringID, value); }
public static Doc Change(Doc doc, StringItem before, string value) { doc = doc.NewID(out var editID); return(Change(doc, editID, before, value)); }