If Left(strText, 3) = "De " Then
Mid(strText, 1, 1) = "d"
ElseIf Left(strText, 4) = "Van " Then
Mid(strText, 1, 1) = "v"
End If
This above VB code needs to be translated into C#.
I know mid and left are
strText.Substring(1,1) and strText.Substring(0, 4)
but if I can't do
strText.Substring(1,1) = "v";
Do I need to do..
strText.Replace(strText.Substring(1,1), "v"))
instead?
There was no comment in the VB6 code. So I am only guessing what is going on here.
EDIT: Sorry Wrong version of code