如果我在末尾有任何带有图像文件的URL,例如:
http://www.google.com/image1.jpg
http://www.google.com/test/test23/image1.jpg
Run Code Online (Sandbox Code Playgroud)
我想得到:
image1.jpg
Run Code Online (Sandbox Code Playgroud)
在C#中执行此操作的最佳方法是什么?
Fre*_*lad 25
string fileName = Path.GetFileName(@"http://www.google.com/test/test23/image1.jpg");
Run Code Online (Sandbox Code Playgroud)