public NodeDifference( ElementIdentifier identifier, OperationOnParent operationOnParent, IEnumerable<Difference> subdifferences) : base(identifier, operationOnParent) { m_subdifferences = new DifferenceHashList(subdifferences); }
public NodeDifference( ElementIdentifier identifier, OperationOnParent operationOnParent, IEnumerable <Difference> subdifferences) : base(identifier, operationOnParent) { m_subdifferences = new DifferenceHashList(subdifferences); }
protected Difference( ElementIdentifier identifier, OperationOnParent operationOnParent) { if (identifier == null) throw new ArgumentNullException("identifier"); if (! Enum.IsDefined(operationOnParent.GetType(), operationOnParent)) throw new ArgumentOutOfRangeException("operationOnParent", operationOnParent, "Invalid value"); r_identifier = identifier; r_operationOnParent = operationOnParent; }
public ValueDifference( ElementIdentifier identifier, OperationOnParent operationOnParent, string oldValue, string newValue) : base(identifier, operationOnParent) { if (oldValue == newValue) throw new MergeException("Cannot create a ValueDifference were 'oldValue == newValue'."); r_oldValue = oldValue; r_newValue = newValue; }
protected Difference( ElementIdentifier identifier, OperationOnParent operationOnParent) { if (identifier == null) { throw new ArgumentNullException("identifier"); } if (!Enum.IsDefined(operationOnParent.GetType(), operationOnParent)) { throw new ArgumentOutOfRangeException("operationOnParent", operationOnParent, "Invalid value"); } r_identifier = identifier; r_operationOnParent = operationOnParent; }
public ValueDifference( ElementIdentifier identifier, OperationOnParent operationOnParent, string oldValue, string newValue) : base(identifier, operationOnParent) { if (oldValue == newValue) { throw new MergeException("Cannot create a ValueDifference were 'oldValue == newValue'."); } r_oldValue = oldValue; r_newValue = newValue; }
public ValueConflict( ElementIdentifier identifier, OperationOnParent operationOnParent, string commonAncestrorValue, string newValueInSourceBranch, string newValueInDestinationBranch) : base(identifier) { if (!Enum.IsDefined(operationOnParent.GetType(), operationOnParent)) throw new ArgumentOutOfRangeException("operationOnParent", operationOnParent.ToString(), "Invalid value"); r_operationOnParent = operationOnParent; r_oldValue = commonAncestrorValue; r_newValueInSourceBranch = newValueInSourceBranch; r_newValueInDestinationBranch = newValueInDestinationBranch; }
public NodeConflict( ElementIdentifier identifier, OperationOnParent operationOnParent, IEnumerable<Difference> acceptedSubdifferences, IEnumerable<Conflict> subconflicts) : base(identifier) { if (!Enum.IsDefined(operationOnParent.GetType(), operationOnParent)) throw new ArgumentOutOfRangeException("operationOnParent", operationOnParent, "Invalid value"); if (acceptedSubdifferences == null) throw new ArgumentNullException("acceptedSubdifferences"); if (subconflicts == null) throw new ArgumentNullException("subconflicts"); r_operationOnParent = operationOnParent; r_acceptedSubdifferences = new DifferenceHashList(acceptedSubdifferences); r_subconflicts = new List<Conflict>(subconflicts); }
public ValueConflict( ElementIdentifier identifier, OperationOnParent operationOnParent, string commonAncestrorValue, string newValueInSourceBranch, string newValueInDestinationBranch) : base(identifier) { if (!Enum.IsDefined(operationOnParent.GetType(), operationOnParent)) { throw new ArgumentOutOfRangeException("operationOnParent", operationOnParent.ToString(), "Invalid value"); } r_operationOnParent = operationOnParent; r_oldValue = commonAncestrorValue; r_newValueInSourceBranch = newValueInSourceBranch; r_newValueInDestinationBranch = newValueInDestinationBranch; }
public NodeConflict( ElementIdentifier identifier, OperationOnParent operationOnParent, IEnumerable <Difference> acceptedSubdifferences, IEnumerable <Conflict> subconflicts) : base(identifier) { if (!Enum.IsDefined(operationOnParent.GetType(), operationOnParent)) { throw new ArgumentOutOfRangeException("operationOnParent", operationOnParent, "Invalid value"); } if (acceptedSubdifferences == null) { throw new ArgumentNullException("acceptedSubdifferences"); } if (subconflicts == null) { throw new ArgumentNullException("subconflicts"); } r_operationOnParent = operationOnParent; r_acceptedSubdifferences = new DifferenceHashList(acceptedSubdifferences); r_subconflicts = new List <Conflict>(subconflicts); }