aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data.WindowsInstaller/Rows/PropertyRow.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Data.WindowsInstaller/Rows/PropertyRow.cs')
-rw-r--r--src/WixToolset.Data.WindowsInstaller/Rows/PropertyRow.cs42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/WixToolset.Data.WindowsInstaller/Rows/PropertyRow.cs b/src/WixToolset.Data.WindowsInstaller/Rows/PropertyRow.cs
new file mode 100644
index 00000000..558df760
--- /dev/null
+++ b/src/WixToolset.Data.WindowsInstaller/Rows/PropertyRow.cs
@@ -0,0 +1,42 @@
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.Rows
4{
5 using System;
6
7 /// <summary>
8 /// Specialization of a row for the upgrade table.
9 /// </summary>
10 public sealed class PropertyRow : Row
11 {
12 /// <summary>
13 /// Creates an Upgrade row that belongs to a table.
14 /// </summary>
15 /// <param name="sourceLineNumbers">Original source lines for this row.</param>
16 /// <param name="table">Table this Upgrade row belongs to and should get its column definitions from.</param>
17 public PropertyRow(SourceLineNumber sourceLineNumbers, Table table) :
18 base(sourceLineNumbers, table)
19 {
20 }
21
22 /// <summary>
23 /// Gets and sets the upgrade code for the row.
24 /// </summary>
25 /// <value>Property identifier for the row.</value>
26 public string Property
27 {
28 get { return (string)this.Fields[0].Data; }
29 set { this.Fields[0].Data = value; }
30 }
31
32 /// <summary>
33 /// Gets and sets the value for the row.
34 /// </summary>
35 /// <value>Property value for the row.</value>
36 public string Value
37 {
38 get { return (string)this.Fields[1].Data; }
39 set { this.Fields[1].Data = value; }
40 }
41 }
42}