/// </summary> /// <param name="TypeName"></param> /// <param name="objectCode"></param> /// <returns></returns> public static string GetNameByCode(string TypeName, object objectCode) { if (objectCode == null) { return(string.Empty); } return(StringItem.GetNameByCode(TypeName, objectCode.ToString())); }
public static string GetNameDependonLanguage <T>(string code) where T : BaseDict { string languageName = Thread.CurrentThread.CurrentUICulture.Name.ToLower(); if (languageName == "en") { return(StringItem.GetNameEngByCode(typeof(T), code)); } else { return(StringItem.GetNameByCode(typeof(T), code)); } }
public static string GetNameByCode <T>(string code) where T : BaseDict { return(StringItem.GetNameByCode(typeof(T), code)); }