Tham khảo tài liệu 'practical database programming with visual c#.net- p4', công nghệ thông tin, cơ sở dữ liệu phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | LINQ to Objects 173 indexes of the contents of a directory tree. A simple string search is performed in this example. However more complex types of pattern matching can be perfarmudwitb a regular expression. Crcatcancw C and thenopenthe code windowof rhisnewproject an inter thecones shown inI inlothe code window ofthisprojnet. Let s take eclosentookattnirnieceofcodnthnee howitworks. A. . string jen E tlo detoh path ofto n isiei . j T efe8 in which all files of the Visual 2008 are installed. You can mo2ke . athHUr a instafit d yena Viscid SluCi 2gj o Or clibcrcnt folder in your computer. B. An IEnumetable T rnterfaceisuend 0 d finethedetatepe tt tlsc qeeriedfilesfileOtat s The real data typo fd weetqi isutedVo rrplscelhe o ominni type T. Thnmqthod GqtFtres is executed to open and access the queried files with the file path osrhrnqjmont of thismnnOodi C. The querp crite2ta Vstnet OTudio .wlechih a heywordto Ve r ar heO he t jisj. iini assigned tea sfrif olhec r arcniTerrnthatdallbeijtedeini2lej invite qite rypi oec ss. D. The 5 .t ateaind hhemttiafizehwttnfour clauses from let where and select. The rangp t erialOn ttn d tFilnTextyt will be exeoutoOtoso a l cnif co ni v tf of thtmotchnO Ulesurin tjin leg where claptesareusedhere tn mtertOomotahedneegwttnboth o keyword VisualStuOto iF tha Xlename. E. The Connole s ne edl lnclh menOae inyeecutedtoindieeta th Wihetellowlnqmdtehed filea contain thegnarcOnO Xeyword VituatntuOid to thin ti Ii naaner F. The LINeti u i ie oniauted to 0Ctiip af hjer that have a file name that containg the keywptO Virenil Studio ana th tearcXedfitesere c i y edl utitg tdrmdlhiiti Cotgolc. . G. The purppte a llnuc two hoOior lined g v tIIow tec it to ton this io cct in e Dehhggm mode. H. The b .