aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/WindowsInstaller/WindowsInstallerData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Data/WindowsInstaller/WindowsInstallerData.cs')
-rw-r--r--src/WixToolset.Data/WindowsInstaller/WindowsInstallerData.cs15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/WixToolset.Data/WindowsInstaller/WindowsInstallerData.cs b/src/WixToolset.Data/WindowsInstaller/WindowsInstallerData.cs
index 43c19d69..e30be598 100644
--- a/src/WixToolset.Data/WindowsInstaller/WindowsInstallerData.cs
+++ b/src/WixToolset.Data/WindowsInstaller/WindowsInstallerData.cs
@@ -85,13 +85,22 @@ namespace WixToolset.Data.WindowsInstaller
85 { 85 {
86 using (var writer = XmlWriter.Create(wixout.CreateDataStream(WixOutputStreamName))) 86 using (var writer = XmlWriter.Create(wixout.CreateDataStream(WixOutputStreamName)))
87 { 87 {
88 writer.WriteStartDocument(); 88 this.Save(writer);
89 this.Write(writer);
90 writer.WriteEndDocument();
91 } 89 }
92 } 90 }
93 91
94 /// <summary> 92 /// <summary>
93 /// Saves an output to an <c>XmlWriter</c>.
94 /// </summary>
95 /// <param name="wixout">XmlWriter to save to.</param>
96 public void Save(XmlWriter writer)
97 {
98 writer.WriteStartDocument();
99 this.Write(writer);
100 writer.WriteEndDocument();
101 }
102
103 /// <summary>
95 /// Gets table by name. 104 /// Gets table by name.
96 /// </summary> 105 /// </summary>
97 public bool TryGetTable(string tableName, out Table table) => this.Tables.TryGetTable(tableName, out table); 106 public bool TryGetTable(string tableName, out Table table) => this.Tables.TryGetTable(tableName, out table);