コード例 #1
0
 public static IEnumerable<GlossaryTermItem> GetRelatedTermsInfo(GlossaryPageItem ObjGlossaryArt, string Termletter)
 {
     IEnumerable<GlossaryTermItem> AllRelatedterms = ObjGlossaryArt.InnerItem.GetChildren()
                  .Where(t => t.TemplateID.ToString() == GlossaryTermItem.TemplateId.ToString())
                  .Select(x => new GlossaryTermItem(x))
                  .Where(x => x.GlossaryTermTitle.Text.Substring(0, 1).ToUpper() == Termletter);
     return AllRelatedterms;
 }
コード例 #2
0
        public static IEnumerable <GlossaryTermItem> GetRelatedTermsInfo(GlossaryPageItem ObjGlossaryArt, string Termletter)
        {
            IEnumerable <GlossaryTermItem> AllRelatedterms = ObjGlossaryArt.InnerItem.GetChildren()
                                                             .Where(t => t.TemplateID.ToString() == GlossaryTermItem.TemplateId.ToString())
                                                             .Select(x => new GlossaryTermItem(x))
                                                             .Where(x => x.GlossaryTermTitle.Text.Substring(0, 1).ToUpper() == Termletter);

            return(AllRelatedterms);
        }