diff options
Diffstat (limited to 'src/WixToolset.Data/Tuples/ExtensionTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/ExtensionTuple.cs | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/src/WixToolset.Data/Tuples/ExtensionTuple.cs b/src/WixToolset.Data/Tuples/ExtensionTuple.cs index 8d817079..b8806971 100644 --- a/src/WixToolset.Data/Tuples/ExtensionTuple.cs +++ b/src/WixToolset.Data/Tuples/ExtensionTuple.cs | |||
| @@ -2,27 +2,27 @@ | |||
| 2 | 2 | ||
| 3 | namespace WixToolset.Data | 3 | namespace WixToolset.Data |
| 4 | { | 4 | { |
| 5 | using WixToolset.Data.Tuples; | 5 | using WixToolset.Data.Symbols; |
| 6 | 6 | ||
| 7 | public static partial class TupleDefinitions | 7 | public static partial class SymbolDefinitions |
| 8 | { | 8 | { |
| 9 | public static readonly IntermediateTupleDefinition Extension = new IntermediateTupleDefinition( | 9 | public static readonly IntermediateSymbolDefinition Extension = new IntermediateSymbolDefinition( |
| 10 | TupleDefinitionType.Extension, | 10 | SymbolDefinitionType.Extension, |
| 11 | new[] | 11 | new[] |
| 12 | { | 12 | { |
| 13 | new IntermediateFieldDefinition(nameof(ExtensionTupleFields.Extension), IntermediateFieldType.String), | 13 | new IntermediateFieldDefinition(nameof(ExtensionSymbolFields.Extension), IntermediateFieldType.String), |
| 14 | new IntermediateFieldDefinition(nameof(ExtensionTupleFields.ComponentRef), IntermediateFieldType.String), | 14 | new IntermediateFieldDefinition(nameof(ExtensionSymbolFields.ComponentRef), IntermediateFieldType.String), |
| 15 | new IntermediateFieldDefinition(nameof(ExtensionTupleFields.ProgIdRef), IntermediateFieldType.String), | 15 | new IntermediateFieldDefinition(nameof(ExtensionSymbolFields.ProgIdRef), IntermediateFieldType.String), |
| 16 | new IntermediateFieldDefinition(nameof(ExtensionTupleFields.MimeRef), IntermediateFieldType.String), | 16 | new IntermediateFieldDefinition(nameof(ExtensionSymbolFields.MimeRef), IntermediateFieldType.String), |
| 17 | new IntermediateFieldDefinition(nameof(ExtensionTupleFields.FeatureRef), IntermediateFieldType.String), | 17 | new IntermediateFieldDefinition(nameof(ExtensionSymbolFields.FeatureRef), IntermediateFieldType.String), |
| 18 | }, | 18 | }, |
| 19 | typeof(ExtensionTuple)); | 19 | typeof(ExtensionSymbol)); |
| 20 | } | 20 | } |
| 21 | } | 21 | } |
| 22 | 22 | ||
| 23 | namespace WixToolset.Data.Tuples | 23 | namespace WixToolset.Data.Symbols |
| 24 | { | 24 | { |
| 25 | public enum ExtensionTupleFields | 25 | public enum ExtensionSymbolFields |
| 26 | { | 26 | { |
| 27 | Extension, | 27 | Extension, |
| 28 | ComponentRef, | 28 | ComponentRef, |
| @@ -31,46 +31,46 @@ namespace WixToolset.Data.Tuples | |||
| 31 | FeatureRef, | 31 | FeatureRef, |
| 32 | } | 32 | } |
| 33 | 33 | ||
| 34 | public class ExtensionTuple : IntermediateTuple | 34 | public class ExtensionSymbol : IntermediateSymbol |
| 35 | { | 35 | { |
| 36 | public ExtensionTuple() : base(TupleDefinitions.Extension, null, null) | 36 | public ExtensionSymbol() : base(SymbolDefinitions.Extension, null, null) |
| 37 | { | 37 | { |
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | public ExtensionTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.Extension, sourceLineNumber, id) | 40 | public ExtensionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Extension, sourceLineNumber, id) |
| 41 | { | 41 | { |
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | public IntermediateField this[ExtensionTupleFields index] => this.Fields[(int)index]; | 44 | public IntermediateField this[ExtensionSymbolFields index] => this.Fields[(int)index]; |
| 45 | 45 | ||
| 46 | public string Extension | 46 | public string Extension |
| 47 | { | 47 | { |
| 48 | get => (string)this.Fields[(int)ExtensionTupleFields.Extension]; | 48 | get => (string)this.Fields[(int)ExtensionSymbolFields.Extension]; |
| 49 | set => this.Set((int)ExtensionTupleFields.Extension, value); | 49 | set => this.Set((int)ExtensionSymbolFields.Extension, value); |
| 50 | } | 50 | } |
| 51 | 51 | ||
| 52 | public string ComponentRef | 52 | public string ComponentRef |
| 53 | { | 53 | { |
| 54 | get => (string)this.Fields[(int)ExtensionTupleFields.ComponentRef]; | 54 | get => (string)this.Fields[(int)ExtensionSymbolFields.ComponentRef]; |
| 55 | set => this.Set((int)ExtensionTupleFields.ComponentRef, value); | 55 | set => this.Set((int)ExtensionSymbolFields.ComponentRef, value); |
| 56 | } | 56 | } |
| 57 | 57 | ||
| 58 | public string ProgIdRef | 58 | public string ProgIdRef |
| 59 | { | 59 | { |
| 60 | get => (string)this.Fields[(int)ExtensionTupleFields.ProgIdRef]; | 60 | get => (string)this.Fields[(int)ExtensionSymbolFields.ProgIdRef]; |
| 61 | set => this.Set((int)ExtensionTupleFields.ProgIdRef, value); | 61 | set => this.Set((int)ExtensionSymbolFields.ProgIdRef, value); |
| 62 | } | 62 | } |
| 63 | 63 | ||
| 64 | public string MimeRef | 64 | public string MimeRef |
| 65 | { | 65 | { |
| 66 | get => (string)this.Fields[(int)ExtensionTupleFields.MimeRef]; | 66 | get => (string)this.Fields[(int)ExtensionSymbolFields.MimeRef]; |
| 67 | set => this.Set((int)ExtensionTupleFields.MimeRef, value); | 67 | set => this.Set((int)ExtensionSymbolFields.MimeRef, value); |
| 68 | } | 68 | } |
| 69 | 69 | ||
| 70 | public string FeatureRef | 70 | public string FeatureRef |
| 71 | { | 71 | { |
| 72 | get => (string)this.Fields[(int)ExtensionTupleFields.FeatureRef]; | 72 | get => (string)this.Fields[(int)ExtensionSymbolFields.FeatureRef]; |
| 73 | set => this.Set((int)ExtensionTupleFields.FeatureRef, value); | 73 | set => this.Set((int)ExtensionSymbolFields.FeatureRef, value); |
| 74 | } | 74 | } |
| 75 | } | 75 | } |
| 76 | } \ No newline at end of file | 76 | } \ No newline at end of file |
