/// <summary> /// Adds an extension. /// </summary> /// <param name="extension">The extension to add.</param> public void AddExtension(WixExtension extension) { if (null != extension.InspectorExtension) { this.inspectorExtensions.Add(extension.InspectorExtension); } }
/// <summary> /// Adds an extension. /// </summary> /// <param name="extension">The extension to add.</param> public void AddExtension(WixExtension extension) { if (null != extension.TableDefinitions) { foreach (TableDefinition tableDefinition in extension.TableDefinitions) { if (!this.tableDefinitions.Contains(tableDefinition.Name)) { this.tableDefinitions.Add(tableDefinition); } else { throw new WixException(WixErrors.DuplicateExtensionTable(extension.GetType().ToString(), tableDefinition.Name)); } } } }