convert this vb to C#

  • Thread starter Thread starter jj
  • Start date Start date
J

jj

Howo do you convert this vb to c#? Asc and Mid functions are not in c#.
any help is appreciated.
If Asc(Mid$(Text, i, 1)) < 128 Then

strTempChar = CType(Asc(Mid$(Text, i, 1)) - 49, String)

ElseIf Asc(Mid$(Text, i, 1)) > 128 Then

strTempChar = CType(Asc(Mid$(Text, i, 1)) + 49, String)

End If
 
I suggest you look at the String class and use Substring method and the
Convert class to convert from one type to another.
 
Back
Top