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,
el-ui:select Get value Thread.getContextClassLoader And Thread.getClassLoader() difference ( Essence )2020 year 7 month 30 day Wechat applet Use of modules 415 Status code to background error ( Essence )2020 year 8 month 15 day redis database StackExchange.Redis in Set type (C# edition )( Essence )2020 year 7 month 15 day Wechat applet import and include difference Three.js - OrbitControls Orbit control around target target parameter Map---Java judge Map Contains a keyDijkstra Algorithmic Python realization - Shortest path problem element-ui+vue-treeselect Verification of drop down box