diff options
Diffstat (limited to 'Prebuild/src/Core/Nodes')
-rw-r--r-- | Prebuild/src/Core/Nodes/ConfigurationNode.cs | 14 | ||||
-rw-r--r-- | Prebuild/src/Core/Nodes/FilesNode.cs | 3 | ||||
-rw-r--r-- | Prebuild/src/Core/Nodes/ProjectNode.cs | 14 | ||||
-rw-r--r-- | Prebuild/src/Core/Nodes/ReferenceNode.cs | 14 | ||||
-rw-r--r-- | Prebuild/src/Core/Nodes/ReferencePathNode.cs | 14 |
5 files changed, 48 insertions, 11 deletions
diff --git a/Prebuild/src/Core/Nodes/ConfigurationNode.cs b/Prebuild/src/Core/Nodes/ConfigurationNode.cs index e1488a7..390794f 100644 --- a/Prebuild/src/Core/Nodes/ConfigurationNode.cs +++ b/Prebuild/src/Core/Nodes/ConfigurationNode.cs | |||
@@ -45,7 +45,7 @@ namespace Prebuild.Core.Nodes | |||
45 | /// | 45 | /// |
46 | /// </summary> | 46 | /// </summary> |
47 | [DataNode("Configuration")] | 47 | [DataNode("Configuration")] |
48 | public class ConfigurationNode : DataNode, ICloneable | 48 | public class ConfigurationNode : DataNode, ICloneable, IComparable |
49 | { | 49 | { |
50 | #region Fields | 50 | #region Fields |
51 | 51 | ||
@@ -173,5 +173,15 @@ namespace Prebuild.Core.Nodes | |||
173 | } | 173 | } |
174 | 174 | ||
175 | #endregion | 175 | #endregion |
176 | } | 176 | |
177 | #region IComparable Members | ||
178 | |||
179 | public int CompareTo(object obj) | ||
180 | { | ||
181 | ConfigurationNode that = (ConfigurationNode) obj; | ||
182 | return this.m_Name.CompareTo(that.m_Name); | ||
183 | } | ||
184 | |||
185 | #endregion | ||
186 | } | ||
177 | } | 187 | } |
diff --git a/Prebuild/src/Core/Nodes/FilesNode.cs b/Prebuild/src/Core/Nodes/FilesNode.cs index 442a45f..d31307b 100644 --- a/Prebuild/src/Core/Nodes/FilesNode.cs +++ b/Prebuild/src/Core/Nodes/FilesNode.cs | |||
@@ -218,5 +218,6 @@ namespace Prebuild.Core.Nodes | |||
218 | } | 218 | } |
219 | 219 | ||
220 | #endregion | 220 | #endregion |
221 | } | 221 | |
222 | } | ||
222 | } | 223 | } |
diff --git a/Prebuild/src/Core/Nodes/ProjectNode.cs b/Prebuild/src/Core/Nodes/ProjectNode.cs index 84d9f5d..5f03c4d 100644 --- a/Prebuild/src/Core/Nodes/ProjectNode.cs +++ b/Prebuild/src/Core/Nodes/ProjectNode.cs | |||
@@ -290,7 +290,9 @@ namespace Prebuild.Core.Nodes | |||
290 | { | 290 | { |
291 | get | 291 | get |
292 | { | 292 | { |
293 | return m_Configurations.Values; | 293 | ArrayList tmp = new ArrayList( ConfigurationsTable.Values); |
294 | tmp.Sort(); | ||
295 | return tmp; | ||
294 | } | 296 | } |
295 | } | 297 | } |
296 | 298 | ||
@@ -314,8 +316,10 @@ namespace Prebuild.Core.Nodes | |||
314 | { | 316 | { |
315 | get | 317 | get |
316 | { | 318 | { |
317 | return m_ReferencePaths; | 319 | ArrayList tmp = new ArrayList(m_ReferencePaths); |
318 | } | 320 | tmp.Sort(); |
321 | return tmp; | ||
322 | } | ||
319 | } | 323 | } |
320 | 324 | ||
321 | /// <summary> | 325 | /// <summary> |
@@ -326,7 +330,9 @@ namespace Prebuild.Core.Nodes | |||
326 | { | 330 | { |
327 | get | 331 | get |
328 | { | 332 | { |
329 | return m_References; | 333 | ArrayList tmp = new ArrayList(m_References); |
334 | tmp.Sort(); | ||
335 | return tmp; | ||
330 | } | 336 | } |
331 | } | 337 | } |
332 | 338 | ||
diff --git a/Prebuild/src/Core/Nodes/ReferenceNode.cs b/Prebuild/src/Core/Nodes/ReferenceNode.cs index beb50dc..a2880c0 100644 --- a/Prebuild/src/Core/Nodes/ReferenceNode.cs +++ b/Prebuild/src/Core/Nodes/ReferenceNode.cs | |||
@@ -45,7 +45,7 @@ namespace Prebuild.Core.Nodes | |||
45 | /// | 45 | /// |
46 | /// </summary> | 46 | /// </summary> |
47 | [DataNode("Reference")] | 47 | [DataNode("Reference")] |
48 | public class ReferenceNode : DataNode | 48 | public class ReferenceNode : DataNode, IComparable |
49 | { | 49 | { |
50 | #region Fields | 50 | #region Fields |
51 | 51 | ||
@@ -139,5 +139,15 @@ namespace Prebuild.Core.Nodes | |||
139 | } | 139 | } |
140 | 140 | ||
141 | #endregion | 141 | #endregion |
142 | } | 142 | |
143 | #region IComparable Members | ||
144 | |||
145 | public int CompareTo(object obj) | ||
146 | { | ||
147 | ReferenceNode that = (ReferenceNode)obj; | ||
148 | return this.m_Name.CompareTo(that.m_Name); | ||
149 | } | ||
150 | |||
151 | #endregion | ||
152 | } | ||
143 | } | 153 | } |
diff --git a/Prebuild/src/Core/Nodes/ReferencePathNode.cs b/Prebuild/src/Core/Nodes/ReferencePathNode.cs index 5d98dda..0563c1b 100644 --- a/Prebuild/src/Core/Nodes/ReferencePathNode.cs +++ b/Prebuild/src/Core/Nodes/ReferencePathNode.cs | |||
@@ -47,7 +47,7 @@ namespace Prebuild.Core.Nodes | |||
47 | /// | 47 | /// |
48 | /// </summary> | 48 | /// </summary> |
49 | [DataNode("ReferencePath")] | 49 | [DataNode("ReferencePath")] |
50 | public class ReferencePathNode : DataNode | 50 | public class ReferencePathNode : DataNode, IComparable |
51 | { | 51 | { |
52 | #region Fields | 52 | #region Fields |
53 | 53 | ||
@@ -94,5 +94,15 @@ namespace Prebuild.Core.Nodes | |||
94 | } | 94 | } |
95 | 95 | ||
96 | #endregion | 96 | #endregion |
97 | } | 97 | |
98 | #region IComparable Members | ||
99 | |||
100 | public int CompareTo(object obj) | ||
101 | { | ||
102 | ReferencePathNode that = (ReferencePathNode)obj; | ||
103 | return this.m_Path.CompareTo(that.m_Path); | ||
104 | } | ||
105 | |||
106 | #endregion | ||
107 | } | ||
98 | } | 108 | } |