#region Using Statements using System; #endregion namespace ArdupilotMega.Attributes { /// /// Used to decorate a type or type member with display text. /// [AttributeUsage(AttributeTargets.All, Inherited = false, AllowMultiple = false)] public sealed class DisplayTextAttribute : Attribute { private readonly string _text; /// /// Initializes a new instance of the class. /// /// The text. /// /// Thrown when is null or empty. /// public DisplayTextAttribute(string text) { if (String.IsNullOrEmpty(text)) { throw new ArgumentException("\"text\" is required."); } _text = text; } /// /// Gets the text. /// /// The text. public string Text { get { return _text; } } } }