diff options
| author | Rob Mensching <rob@firegiant.com> | 2017-11-01 10:56:09 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2017-11-01 10:56:09 -0700 |
| commit | 69b15d96cebdbb7201b1849b4f62786633d70b8d (patch) | |
| tree | 4b65de8679e4b4ab81b69edcccbac1ae9f55a16d /src/WixToolset.Data/Tuples/MsiShortcutPropertyTuple.cs | |
| parent | a8656a87887d6cb2c54f4bbeacee37f7074f1032 (diff) | |
| download | wix-69b15d96cebdbb7201b1849b4f62786633d70b8d.tar.gz wix-69b15d96cebdbb7201b1849b4f62786633d70b8d.tar.bz2 wix-69b15d96cebdbb7201b1849b4f62786633d70b8d.zip | |
Introduce WiX Intermediate Representation
Diffstat (limited to 'src/WixToolset.Data/Tuples/MsiShortcutPropertyTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/MsiShortcutPropertyTuple.cs | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Tuples/MsiShortcutPropertyTuple.cs b/src/WixToolset.Data/Tuples/MsiShortcutPropertyTuple.cs new file mode 100644 index 00000000..9ee6b2f2 --- /dev/null +++ b/src/WixToolset.Data/Tuples/MsiShortcutPropertyTuple.cs | |||
| @@ -0,0 +1,68 @@ | |||
| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
| 2 | |||
| 3 | namespace WixToolset.Data | ||
| 4 | { | ||
| 5 | using WixToolset.Data.Tuples; | ||
| 6 | |||
| 7 | public static partial class TupleDefinitions | ||
| 8 | { | ||
| 9 | public static readonly IntermediateTupleDefinition MsiShortcutProperty = new IntermediateTupleDefinition( | ||
| 10 | TupleDefinitionType.MsiShortcutProperty, | ||
| 11 | new[] | ||
| 12 | { | ||
| 13 | new IntermediateFieldDefinition(nameof(MsiShortcutPropertyTupleFields.MsiShortcutProperty), IntermediateFieldType.String), | ||
| 14 | new IntermediateFieldDefinition(nameof(MsiShortcutPropertyTupleFields.Shortcut_), IntermediateFieldType.String), | ||
| 15 | new IntermediateFieldDefinition(nameof(MsiShortcutPropertyTupleFields.PropertyKey), IntermediateFieldType.String), | ||
| 16 | new IntermediateFieldDefinition(nameof(MsiShortcutPropertyTupleFields.PropVariantValue), IntermediateFieldType.String), | ||
| 17 | }, | ||
| 18 | typeof(MsiShortcutPropertyTuple)); | ||
| 19 | } | ||
| 20 | } | ||
| 21 | |||
| 22 | namespace WixToolset.Data.Tuples | ||
| 23 | { | ||
| 24 | public enum MsiShortcutPropertyTupleFields | ||
| 25 | { | ||
| 26 | MsiShortcutProperty, | ||
| 27 | Shortcut_, | ||
| 28 | PropertyKey, | ||
| 29 | PropVariantValue, | ||
| 30 | } | ||
| 31 | |||
| 32 | public class MsiShortcutPropertyTuple : IntermediateTuple | ||
| 33 | { | ||
| 34 | public MsiShortcutPropertyTuple() : base(TupleDefinitions.MsiShortcutProperty, null, null) | ||
| 35 | { | ||
| 36 | } | ||
| 37 | |||
| 38 | public MsiShortcutPropertyTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.MsiShortcutProperty, sourceLineNumber, id) | ||
| 39 | { | ||
| 40 | } | ||
| 41 | |||
| 42 | public IntermediateField this[MsiShortcutPropertyTupleFields index] => this.Fields[(int)index]; | ||
| 43 | |||
| 44 | public string MsiShortcutProperty | ||
| 45 | { | ||
| 46 | get => (string)this.Fields[(int)MsiShortcutPropertyTupleFields.MsiShortcutProperty]?.Value; | ||
| 47 | set => this.Set((int)MsiShortcutPropertyTupleFields.MsiShortcutProperty, value); | ||
| 48 | } | ||
| 49 | |||
| 50 | public string Shortcut_ | ||
| 51 | { | ||
| 52 | get => (string)this.Fields[(int)MsiShortcutPropertyTupleFields.Shortcut_]?.Value; | ||
| 53 | set => this.Set((int)MsiShortcutPropertyTupleFields.Shortcut_, value); | ||
| 54 | } | ||
| 55 | |||
| 56 | public string PropertyKey | ||
| 57 | { | ||
| 58 | get => (string)this.Fields[(int)MsiShortcutPropertyTupleFields.PropertyKey]?.Value; | ||
| 59 | set => this.Set((int)MsiShortcutPropertyTupleFields.PropertyKey, value); | ||
| 60 | } | ||
| 61 | |||
| 62 | public string PropVariantValue | ||
| 63 | { | ||
| 64 | get => (string)this.Fields[(int)MsiShortcutPropertyTupleFields.PropVariantValue]?.Value; | ||
| 65 | set => this.Set((int)MsiShortcutPropertyTupleFields.PropVariantValue, value); | ||
| 66 | } | ||
| 67 | } | ||
| 68 | } \ No newline at end of file | ||
