diff options
Diffstat (limited to 'src/WixToolset.Core/Link/ConnectToFeature.cs')
-rw-r--r-- | src/WixToolset.Core/Link/ConnectToFeature.cs | 50 |
1 files changed, 12 insertions, 38 deletions
diff --git a/src/WixToolset.Core/Link/ConnectToFeature.cs b/src/WixToolset.Core/Link/ConnectToFeature.cs index 6e046b89..bc85426a 100644 --- a/src/WixToolset.Core/Link/ConnectToFeature.cs +++ b/src/WixToolset.Core/Link/ConnectToFeature.cs | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | namespace WixToolset.Link | 3 | namespace WixToolset.Link |
4 | { | 4 | { |
5 | using System.Collections.Specialized; | 5 | using System.Collections.Generic; |
6 | using WixToolset.Data; | 6 | using WixToolset.Data; |
7 | 7 | ||
8 | /// <summary> | 8 | /// <summary> |
@@ -10,19 +10,12 @@ namespace WixToolset.Link | |||
10 | /// </summary> | 10 | /// </summary> |
11 | public sealed class ConnectToFeature | 11 | public sealed class ConnectToFeature |
12 | { | 12 | { |
13 | private Section section; | ||
14 | private string childId; | ||
15 | |||
16 | private string primaryFeature; | ||
17 | private bool explicitPrimaryFeature; | ||
18 | private StringCollection connectFeatures; | ||
19 | |||
20 | /// <summary> | 13 | /// <summary> |
21 | /// Creates a new connect to feature. | 14 | /// Creates a new connect to feature. |
22 | /// </summary> | 15 | /// </summary> |
23 | /// <param name="section">Section this connect belongs to.</param> | 16 | /// <param name="section">Section this connect belongs to.</param> |
24 | /// <param name="childId">Id of the child.</param> | 17 | /// <param name="childId">Id of the child.</param> |
25 | public ConnectToFeature(Section section, string childId) : | 18 | public ConnectToFeature(IntermediateSection section, string childId) : |
26 | this(section, childId, null, false) | 19 | this(section, childId, null, false) |
27 | { | 20 | { |
28 | } | 21 | } |
@@ -34,62 +27,43 @@ namespace WixToolset.Link | |||
34 | /// <param name="childId">Id of the child.</param> | 27 | /// <param name="childId">Id of the child.</param> |
35 | /// <param name="primaryFeature">Sets the primary feature for the connection.</param> | 28 | /// <param name="primaryFeature">Sets the primary feature for the connection.</param> |
36 | /// <param name="explicitPrimaryFeature">Sets if this is explicit primary.</param> | 29 | /// <param name="explicitPrimaryFeature">Sets if this is explicit primary.</param> |
37 | public ConnectToFeature(Section section, string childId, string primaryFeature, bool explicitPrimaryFeature) | 30 | public ConnectToFeature(IntermediateSection section, string childId, string primaryFeature, bool explicitPrimaryFeature) |
38 | { | 31 | { |
39 | this.section = section; | 32 | this.Section = section; |
40 | this.childId = childId; | 33 | this.ChildId = childId; |
41 | 34 | ||
42 | this.primaryFeature = primaryFeature; | 35 | this.PrimaryFeature = primaryFeature; |
43 | this.explicitPrimaryFeature = explicitPrimaryFeature; | 36 | this.IsExplicitPrimaryFeature = explicitPrimaryFeature; |
44 | |||
45 | this.connectFeatures = new StringCollection(); | ||
46 | } | 37 | } |
47 | 38 | ||
48 | /// <summary> | 39 | /// <summary> |
49 | /// Gets the section. | 40 | /// Gets the section. |
50 | /// </summary> | 41 | /// </summary> |
51 | /// <value>Section.</value> | 42 | /// <value>Section.</value> |
52 | public Section Section | 43 | public IntermediateSection Section { get; } |
53 | { | ||
54 | get { return this.section; } | ||
55 | } | ||
56 | 44 | ||
57 | /// <summary> | 45 | /// <summary> |
58 | /// Gets the child identifier. | 46 | /// Gets the child identifier. |
59 | /// </summary> | 47 | /// </summary> |
60 | /// <value>The child identifier.</value> | 48 | /// <value>The child identifier.</value> |
61 | public string ChildId | 49 | public string ChildId { get; } |
62 | { | ||
63 | get { return this.childId; } | ||
64 | } | ||
65 | 50 | ||
66 | /// <summary> | 51 | /// <summary> |
67 | /// Gets or sets if the flag for if the primary feature was set explicitly. | 52 | /// Gets or sets if the flag for if the primary feature was set explicitly. |
68 | /// </summary> | 53 | /// </summary> |
69 | /// <value>The flag for if the primary feature was set explicitly.</value> | 54 | /// <value>The flag for if the primary feature was set explicitly.</value> |
70 | public bool IsExplicitPrimaryFeature | 55 | public bool IsExplicitPrimaryFeature { get; set; } |
71 | { | ||
72 | get { return this.explicitPrimaryFeature; } | ||
73 | set { this.explicitPrimaryFeature = value; } | ||
74 | } | ||
75 | 56 | ||
76 | /// <summary> | 57 | /// <summary> |
77 | /// Gets or sets the primary feature. | 58 | /// Gets or sets the primary feature. |
78 | /// </summary> | 59 | /// </summary> |
79 | /// <value>The primary feature.</value> | 60 | /// <value>The primary feature.</value> |
80 | public string PrimaryFeature | 61 | public string PrimaryFeature { get; set; } |
81 | { | ||
82 | get { return this.primaryFeature; } | ||
83 | set { this.primaryFeature = value; } | ||
84 | } | ||
85 | 62 | ||
86 | /// <summary> | 63 | /// <summary> |
87 | /// Gets the features connected to. | 64 | /// Gets the features connected to. |
88 | /// </summary> | 65 | /// </summary> |
89 | /// <value>Features connected to.</value> | 66 | /// <value>Features connected to.</value> |
90 | public StringCollection ConnectFeatures | 67 | public List<string> ConnectFeatures { get; } = new List<string>(); |
91 | { | ||
92 | get { return this.connectFeatures; } | ||
93 | } | ||
94 | } | 68 | } |
95 | } | 69 | } |