diff options
Diffstat (limited to 'src/WixToolset.Core.Burn/Bind/BaseSearchFacade.cs')
-rw-r--r-- | src/WixToolset.Core.Burn/Bind/BaseSearchFacade.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/WixToolset.Core.Burn/Bind/BaseSearchFacade.cs b/src/WixToolset.Core.Burn/Bind/BaseSearchFacade.cs new file mode 100644 index 00000000..d00c5778 --- /dev/null +++ b/src/WixToolset.Core.Burn/Bind/BaseSearchFacade.cs | |||
@@ -0,0 +1,27 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
2 | |||
3 | namespace WixToolset.Core.Burn | ||
4 | { | ||
5 | using System; | ||
6 | using System.Xml; | ||
7 | using WixToolset.Data.Tuples; | ||
8 | |||
9 | internal abstract class BaseSearchFacade : ISearchFacade | ||
10 | { | ||
11 | protected WixSearchTuple SearchTuple { get; set; } | ||
12 | |||
13 | public virtual void WriteXml(XmlTextWriter writer) | ||
14 | { | ||
15 | writer.WriteAttributeString("Id", this.SearchTuple.Id.Id); | ||
16 | writer.WriteAttributeString("Variable", this.SearchTuple.Variable); | ||
17 | if (!String.IsNullOrEmpty(this.SearchTuple.Condition)) | ||
18 | { | ||
19 | writer.WriteAttributeString("Condition", this.SearchTuple.Condition); | ||
20 | } | ||
21 | if (!String.IsNullOrEmpty(this.SearchTuple.BundleExtensionRef)) | ||
22 | { | ||
23 | writer.WriteAttributeString("ExtensionId", this.SearchTuple.BundleExtensionRef); | ||
24 | } | ||
25 | } | ||
26 | } | ||
27 | } | ||