public void Undo() { origOptions.CopyTo(methodNode.MethodDefinition); MethodAnnotations.Instance.SetBodyModified(methodNode.MethodDefinition, isBodyModified); }
public void Execute() { isBodyModified = MethodAnnotations.Instance.IsBodyModified(methodNode.MethodDefinition); MethodAnnotations.Instance.SetBodyModified(methodNode.MethodDefinition, true); newOptions.CopyTo(methodNode.MethodDefinition); }