| 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.Versioning |
| 4 | { |
| 5 | /// <summary> |
| 6 | /// Label in a <c>WixVersion</c>. |
| 7 | /// </summary> |
| 8 | public class WixVersionLabel |
| 9 | { |
| 10 | /// <summary> |
| 11 | /// Creates a string only version label. |
| 12 | /// </summary> |
| 13 | /// <param name="label">String value for version label.</param> |
| 14 | public WixVersionLabel(string label) |
| 15 | { |
| 16 | this.Label = label; |
| 17 | } |
| 18 | |
| 19 | /// <summary> |
| 20 | /// Creates a string version label with numeric value. |
| 21 | /// </summary> |
| 22 | /// <param name="label">String value for version label.</param> |
| 23 | /// <param name="numeric">Numeric value for the version label.</param> |
| 24 | public WixVersionLabel(string label, uint? numeric) |
| 25 | { |
| 26 | this.Label = label; |
| 27 | this.Numeric = numeric; |
| 28 | } |
| 29 | |
| 30 | /// <summary> |
| 31 | /// Gets the string label value. |
| 32 | /// </summary> |
| 33 | public string Label { get; set; } |
| 34 | |
| 35 | /// <summary> |
| 36 | /// Gets the optional numeric label value. |
| 37 | /// </summary> |
| 38 | public uint? Numeric { get; set; } |
| 39 | } |
| 40 | } |