diff options
Diffstat (limited to 'src/wixext/Symbols/WixDependencySymbol.cs')
-rw-r--r-- | src/wixext/Symbols/WixDependencySymbol.cs | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/src/wixext/Symbols/WixDependencySymbol.cs b/src/wixext/Symbols/WixDependencySymbol.cs deleted file mode 100644 index 17c631c5..00000000 --- a/src/wixext/Symbols/WixDependencySymbol.cs +++ /dev/null | |||
@@ -1,71 +0,0 @@ | |||
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.Dependency | ||
4 | { | ||
5 | using WixToolset.Data; | ||
6 | using WixToolset.Dependency.Symbols; | ||
7 | |||
8 | public static partial class DependencySymbolDefinitions | ||
9 | { | ||
10 | public static readonly IntermediateSymbolDefinition WixDependency = new IntermediateSymbolDefinition( | ||
11 | DependencySymbolDefinitionType.WixDependency.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(WixDependencySymbolFields.ProviderKey), IntermediateFieldType.String), | ||
15 | new IntermediateFieldDefinition(nameof(WixDependencySymbolFields.MinVersion), IntermediateFieldType.String), | ||
16 | new IntermediateFieldDefinition(nameof(WixDependencySymbolFields.MaxVersion), IntermediateFieldType.String), | ||
17 | new IntermediateFieldDefinition(nameof(WixDependencySymbolFields.Attributes), IntermediateFieldType.Number), | ||
18 | }, | ||
19 | typeof(WixDependencySymbol)); | ||
20 | } | ||
21 | } | ||
22 | |||
23 | namespace WixToolset.Dependency.Symbols | ||
24 | { | ||
25 | using WixToolset.Data; | ||
26 | |||
27 | public enum WixDependencySymbolFields | ||
28 | { | ||
29 | ProviderKey, | ||
30 | MinVersion, | ||
31 | MaxVersion, | ||
32 | Attributes, | ||
33 | } | ||
34 | |||
35 | public class WixDependencySymbol : IntermediateSymbol | ||
36 | { | ||
37 | public WixDependencySymbol() : base(DependencySymbolDefinitions.WixDependency, null, null) | ||
38 | { | ||
39 | } | ||
40 | |||
41 | public WixDependencySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(DependencySymbolDefinitions.WixDependency, sourceLineNumber, id) | ||
42 | { | ||
43 | } | ||
44 | |||
45 | public IntermediateField this[WixDependencySymbolFields index] => this.Fields[(int)index]; | ||
46 | |||
47 | public string ProviderKey | ||
48 | { | ||
49 | get => this.Fields[(int)WixDependencySymbolFields.ProviderKey].AsString(); | ||
50 | set => this.Set((int)WixDependencySymbolFields.ProviderKey, value); | ||
51 | } | ||
52 | |||
53 | public string MinVersion | ||
54 | { | ||
55 | get => this.Fields[(int)WixDependencySymbolFields.MinVersion].AsString(); | ||
56 | set => this.Set((int)WixDependencySymbolFields.MinVersion, value); | ||
57 | } | ||
58 | |||
59 | public string MaxVersion | ||
60 | { | ||
61 | get => this.Fields[(int)WixDependencySymbolFields.MaxVersion].AsString(); | ||
62 | set => this.Set((int)WixDependencySymbolFields.MaxVersion, value); | ||
63 | } | ||
64 | |||
65 | public int Attributes | ||
66 | { | ||
67 | get => this.Fields[(int)WixDependencySymbolFields.Attributes].AsNumber(); | ||
68 | set => this.Set((int)WixDependencySymbolFields.Attributes, value); | ||
69 | } | ||
70 | } | ||
71 | } \ No newline at end of file | ||