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

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

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

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

captcha