vb 转成 c#写法 怎么转

来源:百度知道 编辑:UC知道 时间:2024/05/24 12:15:45
Left(LCase(Left(ComeUrl, InStrRev(ComeUrl, "/"))),15)

谁能把上边的写法,转成等同的c#代码

ComeUrl.StartsWith(ComeUrl.LastIndexOf("/")).ToLower().StartsWith(15)

先取得“/”的位置,然后截取前面的字符串,再转换成小写,最后截前15位

你查下msdn 都有的 总这么问 哎

写法一样的。