aboutsummaryrefslogtreecommitdiff
path: root/src/test/Example.Extension/ExampleRow.cs
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2020-04-18 14:43:31 +1000
committerSean Hall <r.sean.hall@gmail.com>2020-04-18 21:31:28 +1000
commita6091afa5bd24fe65e7fc20f179ed888301afdf8 (patch)
tree020cf8336d4f282bac818d2d7a5d2a6b0ae10ff0 /src/test/Example.Extension/ExampleRow.cs
parentc7f9ef7e7bcceb670b56a70fc9aa92152fd55573 (diff)
downloadwix-a6091afa5bd24fe65e7fc20f179ed888301afdf8.tar.gz
wix-a6091afa5bd24fe65e7fc20f179ed888301afdf8.tar.bz2
wix-a6091afa5bd24fe65e7fc20f179ed888301afdf8.zip
Test ability for an extension to have a custom strongly typed row during binding.
Diffstat (limited to 'src/test/Example.Extension/ExampleRow.cs')
-rw-r--r--src/test/Example.Extension/ExampleRow.cs32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/test/Example.Extension/ExampleRow.cs b/src/test/Example.Extension/ExampleRow.cs
new file mode 100644
index 00000000..fc20c6c9
--- /dev/null
+++ b/src/test/Example.Extension/ExampleRow.cs
@@ -0,0 +1,32 @@
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 using WixToolset.Data.WindowsInstaller;
7
8 public class ExampleRow : Row
9 {
10 public ExampleRow(SourceLineNumber sourceLineNumbers, Table table)
11 : base(sourceLineNumbers, table)
12 {
13 }
14
15 public ExampleRow(SourceLineNumber sourceLineNumbers, TableDefinition tableDefinition)
16 : base(sourceLineNumbers, tableDefinition)
17 {
18 }
19
20 public string Example
21 {
22 get { return (string)this.Fields[0].Data; }
23 set { this.Fields[0].Data = value; }
24 }
25
26 public string Value
27 {
28 get { return (string)this.Fields[1].Data; }
29 set { this.Fields[1].Data = value; }
30 }
31 }
32}