aboutsummaryrefslogtreecommitdiff
path: root/src/libs/WixToolset.Versioning/WixVersionLabel.cs
blob: c5dcb87587069776eae389923804245d2bbfb74d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// 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.

namespace WixToolset.Versioning
{
    /// <summary>
    /// Label in a <c>WixVersion</c>.
    /// </summary>
    public class WixVersionLabel
    {
        /// <summary>
        /// Creates a string only version label.
        /// </summary>
        /// <param name="label">String value for version label.</param>
        public WixVersionLabel(string label)
        {
            this.Label = label;
        }

        /// <summary>
        /// Creates a string version label with numeric value.
        /// </summary>
        /// <param name="label">String value for version label.</param>
        /// <param name="numeric">Numeric value for the version label.</param>
        public WixVersionLabel(string label, uint? numeric)
        {
            this.Label = label;
            this.Numeric = numeric;
        }

        /// <summary>
        /// Gets the string label value.
        /// </summary>
        public string Label { get; set; }

        /// <summary>
        /// Gets the optional numeric label value.
        /// </summary>
        public uint? Numeric { get; set; }
    }
}