/// <summary> /// Creates edit action that edits <see cref="Instance"/> specified by variable. /// </summary> /// <param name="variable">The variable.</param> /// <param name="editName">Name of the edit.</param> /// <returns>EditAction.</returns> /// <exception cref="System.ArgumentNullException">editName</exception> internal static EditAction Edit(VariableName variable, string editName) { if (editName == null) { throw new ArgumentNullException("editName"); } var action = new EditAction(variable, editName); return(action); }
/// <summary> /// Creates edit action that removes <see cref="Instance"/> specified by variable. /// </summary> /// <param name="variable">The variable.</param> /// <returns>EditAction.</returns> internal static EditAction Remove(VariableName variable) { var action = new EditAction(variable, null); return(action); }