Equivalent function to IO.Path.GetFileName for urls?

前端 未结 4 1236
情歌与酒
情歌与酒 2021-01-11 13:54

In .NET 4.0, whats the equivalent function to IO.Path.GetFileName for urls?

4条回答
  •  误落风尘
    2021-01-11 14:35

    There are many ways, the main being described here
    Baqsically exploiting the Uri class, and maybe string tokeniztion if needed.

提交回复
热议问题