public void addOwnerToSource(string source, OclConstraintOwner owner) { HashSet <object> owners; sourceToOwners.TryGetValue(source, out owners); if (owners == null) { owners = new HashSet <object>(); sourceToOwners.Add(source, owners); } owners.Add(owner); }
public void addOwnerToSource( OclConstraint constraint, OclConstraintOwner owner) { addOwnerToSource(constraint.getSource(), owner); }