| 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.WindowsInstaller.Rows |
| 4 | { |
| 5 | /// <summary> |
| 6 | /// Specialization of a row for the Property table. |
| 7 | /// </summary> |
| 8 | public sealed class PropertyRow : Row |
| 9 | { |
| 10 | /// <summary> |
| 11 | /// Creates an Property row that belongs to a table. |
| 12 | /// </summary> |
| 13 | /// <param name="sourceLineNumbers">Original source lines for this row.</param> |
| 14 | /// <param name="table">Table this Upgrade row belongs to and should get its column definitions from.</param> |
| 15 | public PropertyRow(SourceLineNumber sourceLineNumbers, Table table) : |
| 16 | base(sourceLineNumbers, table) |
| 17 | { |
| 18 | } |
| 19 | |
| 20 | public PropertyRow(SourceLineNumber sourceLineNumbers, TableDefinition tableDefinition) : |
| 21 | base(sourceLineNumbers, tableDefinition) |
| 22 | { |
| 23 | } |
| 24 | |
| 25 | /// <summary> |
| 26 | /// Gets and sets the property name for the row. |
| 27 | /// </summary> |
| 28 | /// <value>Property identifier for the row.</value> |
| 29 | public string Property |
| 30 | { |
| 31 | get { return (string)this.Fields[0].Data; } |
| 32 | set { this.Fields[0].Data = value; } |
| 33 | } |
| 34 | |
| 35 | /// <summary> |
| 36 | /// Gets and sets the property value for the row. |
| 37 | /// </summary> |
| 38 | /// <value>Property value for the row.</value> |
| 39 | public string Value |
| 40 | { |
| 41 | get { return (string)this.Fields[1].Data; } |
| 42 | set { this.Fields[1].Data = value; } |
| 43 | } |
| 44 | } |
| 45 | } |