diff options
Diffstat (limited to 'src/WixToolset.Data/SimpleTupleDefinitionCreator.cs')
| -rw-r--r-- | src/WixToolset.Data/SimpleTupleDefinitionCreator.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/WixToolset.Data/SimpleTupleDefinitionCreator.cs b/src/WixToolset.Data/SimpleTupleDefinitionCreator.cs index 257f028c..e22d53e7 100644 --- a/src/WixToolset.Data/SimpleTupleDefinitionCreator.cs +++ b/src/WixToolset.Data/SimpleTupleDefinitionCreator.cs | |||
| @@ -4,11 +4,11 @@ namespace WixToolset.Data | |||
| 4 | { | 4 | { |
| 5 | using System.Collections.Generic; | 5 | using System.Collections.Generic; |
| 6 | 6 | ||
| 7 | internal class SimpleTupleDefinitionCreator : ITupleDefinitionCreator | 7 | internal class SimpleSymbolDefinitionCreator : ISymbolDefinitionCreator |
| 8 | { | 8 | { |
| 9 | private Dictionary<string, IntermediateTupleDefinition> CustomDefinitionByName { get; } = new Dictionary<string, IntermediateTupleDefinition>(); | 9 | private Dictionary<string, IntermediateSymbolDefinition> CustomDefinitionByName { get; } = new Dictionary<string, IntermediateSymbolDefinition>(); |
| 10 | 10 | ||
| 11 | public void AddCustomTupleDefinition(IntermediateTupleDefinition definition) | 11 | public void AddCustomSymbolDefinition(IntermediateSymbolDefinition definition) |
| 12 | { | 12 | { |
| 13 | if (!this.CustomDefinitionByName.TryGetValue(definition.Name, out var existing) || definition.Revision > existing.Revision) | 13 | if (!this.CustomDefinitionByName.TryGetValue(definition.Name, out var existing) || definition.Revision > existing.Revision) |
| 14 | { | 14 | { |
| @@ -16,16 +16,16 @@ namespace WixToolset.Data | |||
| 16 | } | 16 | } |
| 17 | } | 17 | } |
| 18 | 18 | ||
| 19 | public bool TryGetTupleDefinitionByName(string name, out IntermediateTupleDefinition tupleDefinition) | 19 | public bool TryGetSymbolDefinitionByName(string name, out IntermediateSymbolDefinition symbolDefinition) |
| 20 | { | 20 | { |
| 21 | tupleDefinition = TupleDefinitions.ByName(name); | 21 | symbolDefinition = SymbolDefinitions.ByName(name); |
| 22 | 22 | ||
| 23 | if (tupleDefinition == null) | 23 | if (symbolDefinition == null) |
| 24 | { | 24 | { |
| 25 | tupleDefinition = this.CustomDefinitionByName.GetValueOrDefault(name); | 25 | symbolDefinition = this.CustomDefinitionByName.GetValueOrDefault(name); |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | return tupleDefinition != null; | 28 | return symbolDefinition != null; |
| 29 | } | 29 | } |
| 30 | } | 30 | } |
| 31 | } | 31 | } |
