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
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #888888 } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.
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;
        }
    }
}