diff options
Diffstat (limited to 'src/WixToolset.Data/Tuples/TypeLibTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/TypeLibTuple.cs | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/src/WixToolset.Data/Tuples/TypeLibTuple.cs b/src/WixToolset.Data/Tuples/TypeLibTuple.cs index 071fe593..736ee292 100644 --- a/src/WixToolset.Data/Tuples/TypeLibTuple.cs +++ b/src/WixToolset.Data/Tuples/TypeLibTuple.cs | |||
| @@ -2,30 +2,30 @@ | |||
| 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 TypeLib = new IntermediateTupleDefinition( | 9 | public static readonly IntermediateSymbolDefinition TypeLib = new IntermediateSymbolDefinition( |
| 10 | TupleDefinitionType.TypeLib, | 10 | SymbolDefinitionType.TypeLib, |
| 11 | new[] | 11 | new[] |
| 12 | { | 12 | { |
| 13 | new IntermediateFieldDefinition(nameof(TypeLibTupleFields.LibId), IntermediateFieldType.String), | 13 | new IntermediateFieldDefinition(nameof(TypeLibSymbolFields.LibId), IntermediateFieldType.String), |
| 14 | new IntermediateFieldDefinition(nameof(TypeLibTupleFields.Language), IntermediateFieldType.Number), | 14 | new IntermediateFieldDefinition(nameof(TypeLibSymbolFields.Language), IntermediateFieldType.Number), |
| 15 | new IntermediateFieldDefinition(nameof(TypeLibTupleFields.ComponentRef), IntermediateFieldType.String), | 15 | new IntermediateFieldDefinition(nameof(TypeLibSymbolFields.ComponentRef), IntermediateFieldType.String), |
| 16 | new IntermediateFieldDefinition(nameof(TypeLibTupleFields.Version), IntermediateFieldType.Number), | 16 | new IntermediateFieldDefinition(nameof(TypeLibSymbolFields.Version), IntermediateFieldType.Number), |
| 17 | new IntermediateFieldDefinition(nameof(TypeLibTupleFields.Description), IntermediateFieldType.String), | 17 | new IntermediateFieldDefinition(nameof(TypeLibSymbolFields.Description), IntermediateFieldType.String), |
| 18 | new IntermediateFieldDefinition(nameof(TypeLibTupleFields.DirectoryRef), IntermediateFieldType.String), | 18 | new IntermediateFieldDefinition(nameof(TypeLibSymbolFields.DirectoryRef), IntermediateFieldType.String), |
| 19 | new IntermediateFieldDefinition(nameof(TypeLibTupleFields.FeatureRef), IntermediateFieldType.String), | 19 | new IntermediateFieldDefinition(nameof(TypeLibSymbolFields.FeatureRef), IntermediateFieldType.String), |
| 20 | new IntermediateFieldDefinition(nameof(TypeLibTupleFields.Cost), IntermediateFieldType.Number), | 20 | new IntermediateFieldDefinition(nameof(TypeLibSymbolFields.Cost), IntermediateFieldType.Number), |
| 21 | }, | 21 | }, |
| 22 | typeof(TypeLibTuple)); | 22 | typeof(TypeLibSymbol)); |
| 23 | } | 23 | } |
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | namespace WixToolset.Data.Tuples | 26 | namespace WixToolset.Data.Symbols |
| 27 | { | 27 | { |
| 28 | public enum TypeLibTupleFields | 28 | public enum TypeLibSymbolFields |
| 29 | { | 29 | { |
| 30 | LibId, | 30 | LibId, |
| 31 | Language, | 31 | Language, |
| @@ -37,64 +37,64 @@ namespace WixToolset.Data.Tuples | |||
| 37 | Cost, | 37 | Cost, |
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | public class TypeLibTuple : IntermediateTuple | 40 | public class TypeLibSymbol : IntermediateSymbol |
| 41 | { | 41 | { |
| 42 | public TypeLibTuple() : base(TupleDefinitions.TypeLib, null, null) | 42 | public TypeLibSymbol() : base(SymbolDefinitions.TypeLib, null, null) |
| 43 | { | 43 | { |
| 44 | } | 44 | } |
| 45 | 45 | ||
| 46 | public TypeLibTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.TypeLib, sourceLineNumber, id) | 46 | public TypeLibSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.TypeLib, sourceLineNumber, id) |
| 47 | { | 47 | { |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | public IntermediateField this[TypeLibTupleFields index] => this.Fields[(int)index]; | 50 | public IntermediateField this[TypeLibSymbolFields index] => this.Fields[(int)index]; |
| 51 | 51 | ||
| 52 | public string LibId | 52 | public string LibId |
| 53 | { | 53 | { |
| 54 | get => (string)this.Fields[(int)TypeLibTupleFields.LibId]; | 54 | get => (string)this.Fields[(int)TypeLibSymbolFields.LibId]; |
| 55 | set => this.Set((int)TypeLibTupleFields.LibId, value); | 55 | set => this.Set((int)TypeLibSymbolFields.LibId, value); |
| 56 | } | 56 | } |
| 57 | 57 | ||
| 58 | public int Language | 58 | public int Language |
| 59 | { | 59 | { |
| 60 | get => (int)this.Fields[(int)TypeLibTupleFields.Language]; | 60 | get => (int)this.Fields[(int)TypeLibSymbolFields.Language]; |
| 61 | set => this.Set((int)TypeLibTupleFields.Language, value); | 61 | set => this.Set((int)TypeLibSymbolFields.Language, value); |
| 62 | } | 62 | } |
| 63 | 63 | ||
| 64 | public string ComponentRef | 64 | public string ComponentRef |
| 65 | { | 65 | { |
| 66 | get => (string)this.Fields[(int)TypeLibTupleFields.ComponentRef]; | 66 | get => (string)this.Fields[(int)TypeLibSymbolFields.ComponentRef]; |
| 67 | set => this.Set((int)TypeLibTupleFields.ComponentRef, value); | 67 | set => this.Set((int)TypeLibSymbolFields.ComponentRef, value); |
| 68 | } | 68 | } |
| 69 | 69 | ||
| 70 | public int? Version | 70 | public int? Version |
| 71 | { | 71 | { |
| 72 | get => (int?)this.Fields[(int)TypeLibTupleFields.Version]; | 72 | get => (int?)this.Fields[(int)TypeLibSymbolFields.Version]; |
| 73 | set => this.Set((int)TypeLibTupleFields.Version, value); | 73 | set => this.Set((int)TypeLibSymbolFields.Version, value); |
| 74 | } | 74 | } |
| 75 | 75 | ||
| 76 | public string Description | 76 | public string Description |
| 77 | { | 77 | { |
| 78 | get => (string)this.Fields[(int)TypeLibTupleFields.Description]; | 78 | get => (string)this.Fields[(int)TypeLibSymbolFields.Description]; |
| 79 | set => this.Set((int)TypeLibTupleFields.Description, value); | 79 | set => this.Set((int)TypeLibSymbolFields.Description, value); |
| 80 | } | 80 | } |
| 81 | 81 | ||
| 82 | public string DirectoryRef | 82 | public string DirectoryRef |
| 83 | { | 83 | { |
| 84 | get => (string)this.Fields[(int)TypeLibTupleFields.DirectoryRef]; | 84 | get => (string)this.Fields[(int)TypeLibSymbolFields.DirectoryRef]; |
| 85 | set => this.Set((int)TypeLibTupleFields.DirectoryRef, value); | 85 | set => this.Set((int)TypeLibSymbolFields.DirectoryRef, value); |
| 86 | } | 86 | } |
| 87 | 87 | ||
| 88 | public string FeatureRef | 88 | public string FeatureRef |
| 89 | { | 89 | { |
| 90 | get => (string)this.Fields[(int)TypeLibTupleFields.FeatureRef]; | 90 | get => (string)this.Fields[(int)TypeLibSymbolFields.FeatureRef]; |
| 91 | set => this.Set((int)TypeLibTupleFields.FeatureRef, value); | 91 | set => this.Set((int)TypeLibSymbolFields.FeatureRef, value); |
| 92 | } | 92 | } |
| 93 | 93 | ||
| 94 | public int? Cost | 94 | public int? Cost |
| 95 | { | 95 | { |
| 96 | get => (int?)this.Fields[(int)TypeLibTupleFields.Cost]; | 96 | get => (int?)this.Fields[(int)TypeLibSymbolFields.Cost]; |
| 97 | set => this.Set((int)TypeLibTupleFields.Cost, value); | 97 | set => this.Set((int)TypeLibSymbolFields.Cost, value); |
| 98 | } | 98 | } |
| 99 | } | 99 | } |
| 100 | } | 100 | } |
