c#.net 获取一个文件名的扩展名 如知道了一串文件名,得到扩展名如下: string ImgPath="http://www.cnblogs.com/abc/aa.jpg"; string tem = Path.GetExtension(ImgPath);