diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2020-05-29 11:44:46 +1000 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2020-05-29 11:46:53 +1000 |
| commit | 311dbab658184e603953791a075c776456226b95 (patch) | |
| tree | 7767f664492a11d1721b37200a0a45077222d3c6 /src/WixToolset.Data/WindowsInstaller/TableDefinitionCollection.cs | |
| parent | e25b29f5ded38e281f3a686bc5ce7cbe1d872d3b (diff) | |
| download | wix-311dbab658184e603953791a075c776456226b95.tar.gz wix-311dbab658184e603953791a075c776456226b95.tar.bz2 wix-311dbab658184e603953791a075c776456226b95.zip | |
Add overloads to WindowsInstallerData.Load for table definitions.
Diffstat (limited to 'src/WixToolset.Data/WindowsInstaller/TableDefinitionCollection.cs')
| -rw-r--r-- | src/WixToolset.Data/WindowsInstaller/TableDefinitionCollection.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/WixToolset.Data/WindowsInstaller/TableDefinitionCollection.cs b/src/WixToolset.Data/WindowsInstaller/TableDefinitionCollection.cs index 91385d74..fcc2b1f6 100644 --- a/src/WixToolset.Data/WindowsInstaller/TableDefinitionCollection.cs +++ b/src/WixToolset.Data/WindowsInstaller/TableDefinitionCollection.cs | |||
| @@ -132,8 +132,9 @@ namespace WixToolset.Data.WindowsInstaller | |||
| 132 | /// Loads a collection of table definitions from a XmlReader in memory. | 132 | /// Loads a collection of table definitions from a XmlReader in memory. |
| 133 | /// </summary> | 133 | /// </summary> |
| 134 | /// <param name="reader">Reader to get data from.</param> | 134 | /// <param name="reader">Reader to get data from.</param> |
| 135 | /// <param name="tableDefinitions">Table definitions to use for strongly-typed rows.</param> | ||
| 135 | /// <returns>The TableDefinitionCollection represented by the xml.</returns> | 136 | /// <returns>The TableDefinitionCollection represented by the xml.</returns> |
| 136 | internal static TableDefinitionCollection Read(XmlReader reader) | 137 | internal static TableDefinitionCollection Read(XmlReader reader, TableDefinitionCollection tableDefinitions) |
| 137 | { | 138 | { |
| 138 | if ("tableDefinitions" != reader.LocalName) | 139 | if ("tableDefinitions" != reader.LocalName) |
| 139 | { | 140 | { |
| @@ -160,7 +161,7 @@ namespace WixToolset.Data.WindowsInstaller | |||
| 160 | switch (reader.LocalName) | 161 | switch (reader.LocalName) |
| 161 | { | 162 | { |
| 162 | case "tableDefinition": | 163 | case "tableDefinition": |
| 163 | tableDefinitionCollection.Add(TableDefinition.Read(reader)); | 164 | tableDefinitionCollection.Add(TableDefinition.Read(reader, tableDefinitions)); |
| 164 | break; | 165 | break; |
| 165 | default: | 166 | default: |
| 166 | throw new XmlException(); | 167 | throw new XmlException(); |
