microsoft / referencesource

Source from the Microsoft .NET Reference Source that represent a subset of the .NET Framework
https://referencesource.microsoft.com/
MIT License
3.16k stars 1.27k forks source link

Expand usage of the DisplayNameAttribute to the elements of enums. #14

Closed SergeyZhurikhin closed 8 years ago

SergeyZhurikhin commented 8 years ago

Now in PropertyGrid can display more friendly names for enums.

    public enum Axises
    {
        [DisplayName("Ось X")]
        X,
        [DisplayName("Ось Y")]
        Y,
        [DisplayName("Ось Z")]
        Z,
        [DisplayName("Произвольный вектор")]
        CustomVector,
    }

Example: displayname

joshfree commented 8 years ago

Hi @SergeyZhurikhin , https://github.com/microsoft/referencesource repository is read-only. Check out https://github.com/dotnet/corefx for how to engage and contribute to .NET Core. Thanks