diff options
Diffstat (limited to 'src/WixToolset.Core.Burn/Bind/WixSearchInfo.cs')
-rw-r--r-- | src/WixToolset.Core.Burn/Bind/WixSearchInfo.cs | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/src/WixToolset.Core.Burn/Bind/WixSearchInfo.cs b/src/WixToolset.Core.Burn/Bind/WixSearchInfo.cs deleted file mode 100644 index 04347583..00000000 --- a/src/WixToolset.Core.Burn/Bind/WixSearchInfo.cs +++ /dev/null | |||
@@ -1,55 +0,0 @@ | |||
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.Diagnostics; | ||
7 | using System.Xml; | ||
8 | using WixToolset.Data; | ||
9 | |||
10 | /// <summary> | ||
11 | /// Utility base class for all WixSearches. | ||
12 | /// </summary> | ||
13 | internal abstract class WixSearchInfo | ||
14 | { | ||
15 | public WixSearchInfo(string id) | ||
16 | { | ||
17 | this.Id = id; | ||
18 | } | ||
19 | |||
20 | #if TODO | ||
21 | public void AddWixSearchRowInfo(Row row) | ||
22 | { | ||
23 | Debug.Assert((string)row[0] == Id); | ||
24 | Variable = (string)row[1]; | ||
25 | Condition = (string)row[2]; | ||
26 | } | ||
27 | #endif | ||
28 | |||
29 | public string Id { get; private set; } | ||
30 | public string Variable { get; private set; } | ||
31 | public string Condition { get; private set; } | ||
32 | |||
33 | /// <summary> | ||
34 | /// Generates Burn manifest and ParameterInfo-style markup a search. | ||
35 | /// </summary> | ||
36 | /// <param name="writer"></param> | ||
37 | public virtual void WriteXml(XmlTextWriter writer) | ||
38 | { | ||
39 | } | ||
40 | |||
41 | /// <summary> | ||
42 | /// Writes attributes common to all WixSearch elements. | ||
43 | /// </summary> | ||
44 | /// <param name="writer"></param> | ||
45 | protected void WriteWixSearchAttributes(XmlTextWriter writer) | ||
46 | { | ||
47 | writer.WriteAttributeString("Id", this.Id); | ||
48 | writer.WriteAttributeString("Variable", this.Variable); | ||
49 | if (!String.IsNullOrEmpty(this.Condition)) | ||
50 | { | ||
51 | writer.WriteAttributeString("Condition", this.Condition); | ||
52 | } | ||
53 | } | ||
54 | } | ||
55 | } | ||