aboutsummaryrefslogtreecommitdiff
path: root/src/test/Example.Extension/ExampleTuple.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2018-07-19 00:58:00 -0700
committerRob Mensching <rob@firegiant.com>2018-07-21 07:36:59 -0700
commit2724cfee4c163f3297ee25edfd2372767cfd4945 (patch)
tree8cdda34c83bea014a586a491e3b4b187ad8f16da /src/test/Example.Extension/ExampleTuple.cs
parent4d40bef9cf51b8cff7e1f6a73fdf68b9722eb8a0 (diff)
downloadwix-2724cfee4c163f3297ee25edfd2372767cfd4945.tar.gz
wix-2724cfee4c163f3297ee25edfd2372767cfd4945.tar.bz2
wix-2724cfee4c163f3297ee25edfd2372767cfd4945.zip
Move tool projects to Tools repo
Diffstat (limited to 'src/test/Example.Extension/ExampleTuple.cs')
-rw-r--r--src/test/Example.Extension/ExampleTuple.cs31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/test/Example.Extension/ExampleTuple.cs b/src/test/Example.Extension/ExampleTuple.cs
new file mode 100644
index 00000000..0fc0d82c
--- /dev/null
+++ b/src/test/Example.Extension/ExampleTuple.cs
@@ -0,0 +1,31 @@
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 Example.Extension
4{
5 using WixToolset.Data;
6
7 public enum ExampleTupleFields
8 {
9 Example,
10 Value,
11 }
12
13 public class ExampleTuple : IntermediateTuple
14 {
15 public ExampleTuple() : base(ExampleTupleDefinitions.Example, null, null)
16 {
17 }
18
19 public ExampleTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(ExampleTupleDefinitions.Example, sourceLineNumber, id)
20 {
21 }
22
23 public IntermediateField this[ExampleTupleFields index] => this.Fields[(int)index];
24
25 public string Value
26 {
27 get => this.Fields[(int)ExampleTupleFields.Value]?.AsString();
28 set => this.Set((int)ExampleTupleFields.Value, value);
29 }
30 }
31}