using System; namespace Umbraco.Core.CodeAnnotations { /// /// Attribute to add a Friendly Name string with an UmbracoObjectType enum value /// [AttributeUsage(AttributeTargets.All, AllowMultiple = false, Inherited = false)] public class FriendlyNameAttribute : Attribute { /// /// friendly name value /// private readonly string _friendlyName; /// /// Initializes a new instance of the FriendlyNameAttribute class /// Sets the friendly name value /// /// attribute value public FriendlyNameAttribute(string friendlyName) { this._friendlyName = friendlyName; } /// /// Gets the friendly name /// /// string of friendly name public override string ToString() { return this._friendlyName; } } }