/// <summary> /// Provide a pair of operations that when both are applied leave no change to the intended target /// </summary> /// <typeparam name = "TClass"></typeparam> /// <param name = "op1"></param> /// <param name = "op2"></param> public static void AddReversibleOperation <TClass>(ReversibleOperation <TClass> op1, ReversibleOperation <TClass> op2) { Transaction txn = _current; if (txn != null) { txn.AddEdit(new ReversibleOperationEdit <TClass>(op1, op2)); } }
public ReversibleOperationEdit(ReversibleOperation <TClass> op1, ReversibleOperation <TClass> op2) { this.operation1 = op1; this.operation2 = op2; }