File: CommandLine\EnumValueDisplayAttribute.cs
Web Access
Project: src\src\Microsoft.ML.Core\Microsoft.ML.Core.csproj (Microsoft.ML.Core)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
 
using System;
 
namespace Microsoft.ML.CommandLine
{
    /// <summary>
    /// On an enum value - specifies the display name.
    /// </summary>
    [AttributeUsage(AttributeTargets.Field)]
    [BestFriend]
    internal sealed class EnumValueDisplayAttribute : Attribute
    {
        public readonly string Name;
 
        public EnumValueDisplayAttribute(string name)
        {
            Name = name;
        }
    }
}