diff --git a/STranslate/Model/LanguageEnum.cs b/STranslate/Model/LanguageEnum.cs index fa50b3e..42f6542 100644 --- a/STranslate/Model/LanguageEnum.cs +++ b/STranslate/Model/LanguageEnum.cs @@ -60,7 +60,9 @@ namespace STranslate.Model [Description("瑞典语")] SV, //瑞典语 } - //主要这个GetDescription()方法,看不懂没关系,如何调用 + /// + /// 获取Description + /// static class EnumExtensions { public static string GetDescription(this Enum val)