英语角

directory.getfiles获取多种格式文件

电脑版发表于:2021/12/14 17:26


代码如下:

string[] imageFilePaths = Directory.GetFiles("C:\\Users\\xx\\Desktop\\bk_img")
.Where(s => s.EndsWith(".png") || s.EndsWith(".jpg") || s.EndsWith(".jpeg")).ToArray();


关于TNBLOG
TNBLOG,技术分享。技术交流:群号677373950
ICP备案 :渝ICP备18016597号-1
App store Android
精彩评论
{{item.replyName}}
{{item.content}}
{{item.time}}
{{subpj.replyName}}
@{{subpj.beReplyName}}{{subpj.content}}
{{subpj.time}}
猜你喜欢