diff options
| author | Rob Mensching <rob@firegiant.com> | 2019-05-08 13:35:21 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2019-05-08 13:44:59 -0700 |
| commit | ef6485ac4a03333701d343c1e3a52d25805c58f1 (patch) | |
| tree | 3093b1410e651a90c3776b42090bb4e62e98c514 /src/WixToolset.Data/Tuples/CompLocatorTuple.cs | |
| parent | 6e7a3274a1710a734e5369d0a1703b9c9ac9345b (diff) | |
| download | wix-ef6485ac4a03333701d343c1e3a52d25805c58f1.tar.gz wix-ef6485ac4a03333701d343c1e3a52d25805c58f1.tar.bz2 wix-ef6485ac4a03333701d343c1e3a52d25805c58f1.zip | |
Add additional strongly typed tuples
Diffstat (limited to 'src/WixToolset.Data/Tuples/CompLocatorTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/CompLocatorTuple.cs | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/WixToolset.Data/Tuples/CompLocatorTuple.cs b/src/WixToolset.Data/Tuples/CompLocatorTuple.cs index e8560711..37bc2a37 100644 --- a/src/WixToolset.Data/Tuples/CompLocatorTuple.cs +++ b/src/WixToolset.Data/Tuples/CompLocatorTuple.cs | |||
| @@ -10,7 +10,6 @@ namespace WixToolset.Data | |||
| 10 | TupleDefinitionType.CompLocator, | 10 | TupleDefinitionType.CompLocator, |
| 11 | new[] | 11 | new[] |
| 12 | { | 12 | { |
| 13 | new IntermediateFieldDefinition(nameof(CompLocatorTupleFields.Signature_), IntermediateFieldType.String), | ||
| 14 | new IntermediateFieldDefinition(nameof(CompLocatorTupleFields.ComponentId), IntermediateFieldType.String), | 13 | new IntermediateFieldDefinition(nameof(CompLocatorTupleFields.ComponentId), IntermediateFieldType.String), |
| 15 | new IntermediateFieldDefinition(nameof(CompLocatorTupleFields.Type), IntermediateFieldType.Number), | 14 | new IntermediateFieldDefinition(nameof(CompLocatorTupleFields.Type), IntermediateFieldType.Number), |
| 16 | }, | 15 | }, |
| @@ -22,7 +21,6 @@ namespace WixToolset.Data.Tuples | |||
| 22 | { | 21 | { |
| 23 | public enum CompLocatorTupleFields | 22 | public enum CompLocatorTupleFields |
| 24 | { | 23 | { |
| 25 | Signature_, | ||
| 26 | ComponentId, | 24 | ComponentId, |
| 27 | Type, | 25 | Type, |
| 28 | } | 26 | } |
| @@ -39,22 +37,16 @@ namespace WixToolset.Data.Tuples | |||
| 39 | 37 | ||
| 40 | public IntermediateField this[CompLocatorTupleFields index] => this.Fields[(int)index]; | 38 | public IntermediateField this[CompLocatorTupleFields index] => this.Fields[(int)index]; |
| 41 | 39 | ||
| 42 | public string Signature_ | ||
| 43 | { | ||
| 44 | get => (string)this.Fields[(int)CompLocatorTupleFields.Signature_]?.Value; | ||
| 45 | set => this.Set((int)CompLocatorTupleFields.Signature_, value); | ||
| 46 | } | ||
| 47 | |||
| 48 | public string ComponentId | 40 | public string ComponentId |
| 49 | { | 41 | { |
| 50 | get => (string)this.Fields[(int)CompLocatorTupleFields.ComponentId]?.Value; | 42 | get => (string)this.Fields[(int)CompLocatorTupleFields.ComponentId]?.Value; |
| 51 | set => this.Set((int)CompLocatorTupleFields.ComponentId, value); | 43 | set => this.Set((int)CompLocatorTupleFields.ComponentId, value); |
| 52 | } | 44 | } |
| 53 | 45 | ||
| 54 | public int Type | 46 | public LocatorType Type |
| 55 | { | 47 | { |
| 56 | get => (int)this.Fields[(int)CompLocatorTupleFields.Type]?.Value; | 48 | get => (LocatorType)this.Fields[(int)CompLocatorTupleFields.Type].AsNumber(); |
| 57 | set => this.Set((int)CompLocatorTupleFields.Type, value); | 49 | set => this.Set((int)CompLocatorTupleFields.Type, (int)value); |
| 58 | } | 50 | } |
| 59 | } | 51 | } |
| 60 | } \ No newline at end of file | 52 | } \ No newline at end of file |
