Convert to C# code from Vb.Net
I have this function in Vb.net.
Public Function GMString(ByVal strPtr As GMWStr) As String
Dim strlen As Integer
Dim strBuf() As String
strlen = lstrlen(strPtr.Ptr)
If strlen = 0 Then Exit Function
ReDim strBuf(strlen - 1)
CopyMemory(strBuf(0), strPtr.Ptr, UBound(strBuf) + 1)
GMString = StrConv(strBuf(0), VbStrConv.None)
End Function
I need to know what the code will be in C#.
TIA
--
Keya Roychoudhury
Developer
Integration Wizard
www.integrationwizard.com