aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Modules/Tango.FSE.Procedures/UserInput.cs
blob: 043b5bbae79808af567d1cc7952f85c234164242 (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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.FSE.Procedures
{
    /// <summary>
    /// Can be used to decorate a property or field in order to set their custom name when using <see cref="IProcedureContext.RequestUserInputFor{T}(string, string)"/>
    /// </summary>
    /// <seealso cref="System.Attribute" />
    public class UserInput : Attribute
    {
        /// <summary>
        /// Gets or sets the field/property custom name.
        /// </summary>
        public String Name { get; set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="UserInput"/> class.
        /// </summary>
        /// <param name="name">The field name.</param>
        public UserInput(String name)
        {
            Name = name;
        }
    }
}