I am a vb coder that is trying to convert to c#. I can't figure out this code.
Public Function Trunc(ByVal txt As String, ByVal pos As Integer) As String Do While txt.Substring(1, pos) <> Chr(32) pos -= 1 Loop Return Left(txt, pos) & "..." End Function