VB.NET代码如下: Dim str, oldpath, newPath,PrePath As String
........
newPath = str & Microsoft.VisualBasic.Right(oldpath, Len(oldpath) - Len(PrevPath))请问下面这句用C#应该怎样code?
newPath = str & Microsoft.VisualBasic.Right(oldpath, Len(oldpath) - Len(PrevPath))
........
newPath = str & Microsoft.VisualBasic.Right(oldpath, Len(oldpath) - Len(PrevPath))请问下面这句用C#应该怎样code?
newPath = str & Microsoft.VisualBasic.Right(oldpath, Len(oldpath) - Len(PrevPath))
newPath = str + oldPath.Substring(oldPath.Length - PrevPath.Length);
其实,为什么你问问题之前不自己做一下搜索呢?