How to convert into C#? Instr

Posted by Oswaldlily under ASP.NET on 12/29/2011 | Points: 10 | Views : 2561 | Status : [Member] | Replies : 2
Dim _FileName = Mid(FileName, 1, InStrRev(pFileName, My.Computer.FileSystem.GetFileInfo(pFileName).Extension))

is in VB
How to convert into C#?




Responses

Posted by: Jpchoudhari on: 12/29/2011 [Member] Starter | Points: 25

Up
0
Down
use this

http://converter.telerik.com/ OR
http://www.developerfusion.com/tools/convert/vb-to-csharp/

Kind Regards,
Jay

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naraayanan on: 12/29/2011 [Member] Starter | Points: 25

Up
0
Down
Hi,
This is the Answer:
dynamic _FileName = Strings.Mid(FileName, 1, Strings.InStrRev(pFileName, My.Computer.FileSystem.GetFileInfo(pFileName).Extension));

Refer this link
http://www.developerfusion.com/tools/convert/vb-to-csharp/

Regards,
Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
http://abaprocker.blogspot.com/

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response