using System; using System.ComponentModel; using System.Linq; namespace Core.
Util{ /// <summary> /// Development /// </summary> public static partial class Extention
{ /// <summary> /// Get enumeration description /// </summary> /// <param name="value"> enum </param>
/// <returns></returns> public static string GetDescription(this Enum value) {
DescriptionAttribute attribute = value.GetType() .GetField(value.ToString()) .
GetCustomAttributes(typeof(DescriptionAttribute), false) .SingleOrDefault() as
DescriptionAttribute; return attribute == null ? value.ToString() : attribute.
Description; } } }

Technology
©2019-2020 Toolsou All rights reserved,
It's unexpected Python Cherry tree (turtle The gorgeous style of Library )Unity3D of UGUI Basics -- Three modes of canvas os Simple use of module computer network --- Basic concepts of computer network ( agreement , system )html Writing about cherry trees , Writing about cherry trees Some East 14 Pay change 16 salary , Sincerity or routine ?Unity-Demo Examples ✨ realization UI- Backpack equipment drag function 06【 Interpretation according to the frame 】 Data range filtering -- awesome java Four functional interfaces ( a key , simple )