【发布时间】:2010-10-31 13:09:38
【问题描述】:
编写代码的最佳方式应该是什么:
1)
Dim current = Request.Path
current = current.Remove(0, 1)
current = current.Replace(".aspx", "")
2)
Dim current = Request.Path.Remove(0, 1).Replace(".aspx", "")
3)
Dim current = Request.Path
Dim current2 = current.Remove(0, 1)
Dim current3 = current.Replace(".aspx", "")
或者1-2没有区别?
【问题讨论】:
标签: .net performance string concatenation string-concatenation