namespace Umbraco.Cms.Core.CodeAnnotations;
///
/// Attribute to add a Friendly Name string with an UmbracoObjectType enum value
///
[AttributeUsage(AttributeTargets.All, 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) => _friendlyName = friendlyName;
///
/// Gets the friendly name
///
/// string of friendly name
public override string ToString() => _friendlyName;
}