c#获取文件的扩展名

命名空间 system.IO

  string extension = Path.GetExtension("文件的路径");

猜你喜欢

转载自blog.csdn.net/weixin_44568736/article/details/122217038