我有个问题:
System.IO.Path.GetDirectoryName(new Uri(Assembly.GetExecutingAssembly().CodeBase).AbsolutePath)
Run Code Online (Sandbox Code Playgroud)
此声明为我提供%20.我想删除它.除了替换之外还有什么方法吗?
感谢帮助.
Bar*_*aye 11
您可以使用HttpUtility.UrlDecode - 请参阅http://msdn.microsoft.com/en-us/library/system.web.httputility.urldecode.aspx