aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Tuples/_StreamsTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Data/Tuples/_StreamsTuple.cs')
-rw-r--r--src/WixToolset.Data/Tuples/_StreamsTuple.cs52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Tuples/_StreamsTuple.cs b/src/WixToolset.Data/Tuples/_StreamsTuple.cs
new file mode 100644
index 00000000..1f9d75e8
--- /dev/null
+++ b/src/WixToolset.Data/Tuples/_StreamsTuple.cs
@@ -0,0 +1,52 @@
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
3namespace WixToolset.Data
4{
5 using WixToolset.Data.Tuples;
6
7 public static partial class TupleDefinitions
8 {
9 public static readonly IntermediateTupleDefinition _Streams = new IntermediateTupleDefinition(
10 TupleDefinitionType._Streams,
11 new[]
12 {
13 new IntermediateFieldDefinition(nameof(_StreamsTupleFields.Name), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(_StreamsTupleFields.Data), IntermediateFieldType.Path),
15 },
16 typeof(_StreamsTuple));
17 }
18}
19
20namespace WixToolset.Data.Tuples
21{
22 public enum _StreamsTupleFields
23 {
24 Name,
25 Data,
26 }
27
28 public class _StreamsTuple : IntermediateTuple
29 {
30 public _StreamsTuple() : base(TupleDefinitions._Streams, null, null)
31 {
32 }
33
34 public _StreamsTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions._Streams, sourceLineNumber, id)
35 {
36 }
37
38 public IntermediateField this[_StreamsTupleFields index] => this.Fields[(int)index];
39
40 public string Name
41 {
42 get => (string)this.Fields[(int)_StreamsTupleFields.Name]?.Value;
43 set => this.Set((int)_StreamsTupleFields.Name, value);
44 }
45
46 public string Data
47 {
48 get => (string)this.Fields[(int)_StreamsTupleFields.Data]?.Value;
49 set => this.Set((int)_StreamsTupleFields.Data, value);
50 }
51 }
52} \ No newline at end of file