/// <summary> /// Validates the rows of this OutputTable and throws if it collides on /// primary keys. /// </summary> internal void ValidateRows() { Hashtable primaryKeys = new Hashtable(this.Rows.Count); foreach (Row row in this.Rows) { string primaryKey = row.GetPrimaryKey('/'); // check for collisions if (primaryKeys.Contains(primaryKey)) { throw new WixException(WixErrors.DuplicatePrimaryKey((SourceLineNumberCollection)primaryKeys[primaryKey], primaryKey, this.tableDefinition.Name)); } primaryKeys.Add(primaryKey, row.SourceLineNumbers); } }