diff options
Diffstat (limited to 'src/WixToolset.Data/Tuples/MsiFileHashTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/MsiFileHashTuple.cs | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/src/WixToolset.Data/Tuples/MsiFileHashTuple.cs b/src/WixToolset.Data/Tuples/MsiFileHashTuple.cs index 10aa801d..bfec1c12 100644 --- a/src/WixToolset.Data/Tuples/MsiFileHashTuple.cs +++ b/src/WixToolset.Data/Tuples/MsiFileHashTuple.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 MsiFileHash = new IntermediateTupleDefinition( | 9 | public static readonly IntermediateSymbolDefinition MsiFileHash = new IntermediateSymbolDefinition( |
| 10 | TupleDefinitionType.MsiFileHash, | 10 | SymbolDefinitionType.MsiFileHash, |
| 11 | new[] | 11 | new[] |
| 12 | { | 12 | { |
| 13 | new IntermediateFieldDefinition(nameof(MsiFileHashTupleFields.Options), IntermediateFieldType.Number), | 13 | new IntermediateFieldDefinition(nameof(MsiFileHashSymbolFields.Options), IntermediateFieldType.Number), |
| 14 | new IntermediateFieldDefinition(nameof(MsiFileHashTupleFields.HashPart1), IntermediateFieldType.Number), | 14 | new IntermediateFieldDefinition(nameof(MsiFileHashSymbolFields.HashPart1), IntermediateFieldType.Number), |
| 15 | new IntermediateFieldDefinition(nameof(MsiFileHashTupleFields.HashPart2), IntermediateFieldType.Number), | 15 | new IntermediateFieldDefinition(nameof(MsiFileHashSymbolFields.HashPart2), IntermediateFieldType.Number), |
| 16 | new IntermediateFieldDefinition(nameof(MsiFileHashTupleFields.HashPart3), IntermediateFieldType.Number), | 16 | new IntermediateFieldDefinition(nameof(MsiFileHashSymbolFields.HashPart3), IntermediateFieldType.Number), |
| 17 | new IntermediateFieldDefinition(nameof(MsiFileHashTupleFields.HashPart4), IntermediateFieldType.Number), | 17 | new IntermediateFieldDefinition(nameof(MsiFileHashSymbolFields.HashPart4), IntermediateFieldType.Number), |
| 18 | }, | 18 | }, |
| 19 | typeof(MsiFileHashTuple)); | 19 | typeof(MsiFileHashSymbol)); |
| 20 | } | 20 | } |
| 21 | } | 21 | } |
| 22 | 22 | ||
| 23 | namespace WixToolset.Data.Tuples | 23 | namespace WixToolset.Data.Symbols |
| 24 | { | 24 | { |
| 25 | public enum MsiFileHashTupleFields | 25 | public enum MsiFileHashSymbolFields |
| 26 | { | 26 | { |
| 27 | Options, | 27 | Options, |
| 28 | HashPart1, | 28 | HashPart1, |
| @@ -31,46 +31,46 @@ namespace WixToolset.Data.Tuples | |||
| 31 | HashPart4, | 31 | HashPart4, |
| 32 | } | 32 | } |
| 33 | 33 | ||
| 34 | public class MsiFileHashTuple : IntermediateTuple | 34 | public class MsiFileHashSymbol : IntermediateSymbol |
| 35 | { | 35 | { |
| 36 | public MsiFileHashTuple() : base(TupleDefinitions.MsiFileHash, null, null) | 36 | public MsiFileHashSymbol() : base(SymbolDefinitions.MsiFileHash, null, null) |
| 37 | { | 37 | { |
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | public MsiFileHashTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.MsiFileHash, sourceLineNumber, id) | 40 | public MsiFileHashSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiFileHash, sourceLineNumber, id) |
| 41 | { | 41 | { |
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | public IntermediateField this[MsiFileHashTupleFields index] => this.Fields[(int)index]; | 44 | public IntermediateField this[MsiFileHashSymbolFields index] => this.Fields[(int)index]; |
| 45 | 45 | ||
| 46 | public int Options | 46 | public int Options |
| 47 | { | 47 | { |
| 48 | get => (int)this.Fields[(int)MsiFileHashTupleFields.Options]; | 48 | get => (int)this.Fields[(int)MsiFileHashSymbolFields.Options]; |
| 49 | set => this.Set((int)MsiFileHashTupleFields.Options, value); | 49 | set => this.Set((int)MsiFileHashSymbolFields.Options, value); |
| 50 | } | 50 | } |
| 51 | 51 | ||
| 52 | public int HashPart1 | 52 | public int HashPart1 |
| 53 | { | 53 | { |
| 54 | get => (int)this.Fields[(int)MsiFileHashTupleFields.HashPart1]; | 54 | get => (int)this.Fields[(int)MsiFileHashSymbolFields.HashPart1]; |
| 55 | set => this.Set((int)MsiFileHashTupleFields.HashPart1, value); | 55 | set => this.Set((int)MsiFileHashSymbolFields.HashPart1, value); |
| 56 | } | 56 | } |
| 57 | 57 | ||
| 58 | public int HashPart2 | 58 | public int HashPart2 |
| 59 | { | 59 | { |
| 60 | get => (int)this.Fields[(int)MsiFileHashTupleFields.HashPart2]; | 60 | get => (int)this.Fields[(int)MsiFileHashSymbolFields.HashPart2]; |
| 61 | set => this.Set((int)MsiFileHashTupleFields.HashPart2, value); | 61 | set => this.Set((int)MsiFileHashSymbolFields.HashPart2, value); |
| 62 | } | 62 | } |
| 63 | 63 | ||
| 64 | public int HashPart3 | 64 | public int HashPart3 |
| 65 | { | 65 | { |
| 66 | get => (int)this.Fields[(int)MsiFileHashTupleFields.HashPart3]; | 66 | get => (int)this.Fields[(int)MsiFileHashSymbolFields.HashPart3]; |
| 67 | set => this.Set((int)MsiFileHashTupleFields.HashPart3, value); | 67 | set => this.Set((int)MsiFileHashSymbolFields.HashPart3, value); |
| 68 | } | 68 | } |
| 69 | 69 | ||
| 70 | public int HashPart4 | 70 | public int HashPart4 |
| 71 | { | 71 | { |
| 72 | get => (int)this.Fields[(int)MsiFileHashTupleFields.HashPart4]; | 72 | get => (int)this.Fields[(int)MsiFileHashSymbolFields.HashPart4]; |
| 73 | set => this.Set((int)MsiFileHashTupleFields.HashPart4, value); | 73 | set => this.Set((int)MsiFileHashSymbolFields.HashPart4, value); |
| 74 | } | 74 | } |
| 75 | } | 75 | } |
| 76 | } \ No newline at end of file | 76 | } \ No newline at end of file |
