[C#] C#获取文件扩展名的代码 →→→→→进入此内容的聊天室

来自 , 2020-11-30, 写在 C#, 查看 153 次.
URL http://www.code666.cn/view/a8f12d94
  1. string fileType = System.IO.Path.GetExtension(fileName);
  2. if (!string.IsNullOrEmpty(fileType)){
  3.     //如果扩展名不为空,
  4.     //执行相关操作
  5. }

回复 "C#获取文件扩展名的代码"

这儿你可以回复上面这条便签

captcha