Exemple #1
0
        public static string GetLanguageSpecificContent <ML>(this IMLData <ML> self, Expression <Func <ML, string> > LanguageFormat) where ML : MLContent
        {
            //6-7 renyj修改
            if (self == null)
            {
                return("");
            }
            if (self.MLContents == null)
            {
                return("");
            }
            string rv = self.MLContents.Where(x => x.LanguageCode == UtilsTool.GetCurrentLanguage().LanguageCode).Select(LanguageFormat.Compile()).FirstOrDefault();

            return(rv);
        }
Exemple #2
0
 public static string GetHtmlID <T>(this T self, Expression <Func <T, object> > Exp) where T : BaseVM
 {
     return(UtilsTool.GetPropertyName(Exp));
 }