diff options
Diffstat (limited to 'src/WixToolset.Data/Tuples/_ByHandFileTuple.cs')
-rw-r--r-- | src/WixToolset.Data/Tuples/_ByHandFileTuple.cs | 88 |
1 files changed, 0 insertions, 88 deletions
diff --git a/src/WixToolset.Data/Tuples/_ByHandFileTuple.cs b/src/WixToolset.Data/Tuples/_ByHandFileTuple.cs deleted file mode 100644 index 79fb31e5..00000000 --- a/src/WixToolset.Data/Tuples/_ByHandFileTuple.cs +++ /dev/null | |||
@@ -1,88 +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.Data | ||
4 | { | ||
5 | using WixToolset.Data.Tuples; | ||
6 | |||
7 | //public static partial class TupleDefinitionNames | ||
8 | //{ | ||
9 | // public const string File = nameof(TupleDefinitionNames.File); | ||
10 | //} | ||
11 | |||
12 | /* | ||
13 | [ | ||
14 | { | ||
15 | "File" : [ | ||
16 | { "Component" : "string" }, | ||
17 | { "Name" : "string" }, | ||
18 | { "Compressed" : "bool" }, | ||
19 | ] | ||
20 | }, | ||
21 | { | ||
22 | "Component": [ | ||
23 | { "Guid" : "string" }, | ||
24 | ] | ||
25 | }, | ||
26 | ] | ||
27 | */ | ||
28 | |||
29 | public static partial class TupleDefinitions | ||
30 | { | ||
31 | public static readonly IntermediateTupleDefinition FileOriginal = new IntermediateTupleDefinition( | ||
32 | TupleDefinitionType.File, | ||
33 | new[] | ||
34 | { | ||
35 | new IntermediateFieldDefinition(nameof(FileTupleFieldsOriginal.Component), IntermediateFieldType.String), | ||
36 | new IntermediateFieldDefinition(nameof(FileTupleFieldsOriginal.Name), IntermediateFieldType.String), | ||
37 | new IntermediateFieldDefinition(nameof(FileTupleFieldsOriginal.ShortName), IntermediateFieldType.String), | ||
38 | new IntermediateFieldDefinition(nameof(FileTupleFieldsOriginal.Size), IntermediateFieldType.Number), | ||
39 | new IntermediateFieldDefinition(nameof(FileTupleFieldsOriginal.Version), IntermediateFieldType.String), | ||
40 | new IntermediateFieldDefinition(nameof(FileTupleFieldsOriginal.Language), IntermediateFieldType.String), | ||
41 | new IntermediateFieldDefinition(nameof(FileTupleFieldsOriginal.ReadOnly), IntermediateFieldType.Bool), | ||
42 | new IntermediateFieldDefinition(nameof(FileTupleFieldsOriginal.Hidden), IntermediateFieldType.Bool), | ||
43 | new IntermediateFieldDefinition(nameof(FileTupleFieldsOriginal.System), IntermediateFieldType.Bool), | ||
44 | new IntermediateFieldDefinition(nameof(FileTupleFieldsOriginal.Vital), IntermediateFieldType.Bool), | ||
45 | new IntermediateFieldDefinition(nameof(FileTupleFieldsOriginal.Checksum), IntermediateFieldType.Bool), | ||
46 | new IntermediateFieldDefinition(nameof(FileTupleFieldsOriginal.Compressed), IntermediateFieldType.Bool), | ||
47 | }, | ||
48 | typeof(FileTuple)); | ||
49 | } | ||
50 | } | ||
51 | |||
52 | namespace WixToolset.Data.Tuples | ||
53 | { | ||
54 | public enum FileTupleFieldsOriginal | ||
55 | { | ||
56 | Component, | ||
57 | Name, | ||
58 | ShortName, | ||
59 | Size, | ||
60 | Version, | ||
61 | Language, | ||
62 | ReadOnly, | ||
63 | Hidden, | ||
64 | System, | ||
65 | Vital, | ||
66 | Checksum, | ||
67 | Compressed, | ||
68 | } | ||
69 | |||
70 | public class FileTupleOriginal : IntermediateTuple | ||
71 | { | ||
72 | public FileTupleOriginal() : base(TupleDefinitions.File, null, null) | ||
73 | { | ||
74 | } | ||
75 | |||
76 | public FileTupleOriginal(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.File, sourceLineNumber, id) | ||
77 | { | ||
78 | } | ||
79 | |||
80 | public IntermediateField this[FileTupleFields index] => this.Fields[(int)index]; | ||
81 | |||
82 | public string Component | ||
83 | { | ||
84 | get => (string)this.Fields[(int)FileTupleFieldsOriginal.Component]?.Value; | ||
85 | set => this.Set((int)FileTupleFieldsOriginal.Component, value); | ||
86 | } | ||
87 | } | ||
88 | } | ||