请问vb6中这段代码怎样转换到c#?
ivsee 2003-11-13 01:14:04 Private Sub CALISZC_OnPresentResponse(ByVal ReferenceId As String, ByVal NumberOfRecordsReturned As Long, ByVal PresentStatus As Long, ByVal ErrorCode As Long, ByVal ErrorMsg As String)
Dim rlen As Long
Dim rbyte() As Byte
Dim i As Long
Dim record As String
rlen = CALISZC.RecordLength
ReDim rbyte(rlen - 1)
For i = 0 To rlen - 1
rbyte(i) = CALISZC.RecordData(i)
Next i
record = rbyte
Text1.Text = StrConv(record, vbUnicode)
End Sub
这里的recorddata为interge类型,放在cv#中,变为get_RecordData(int)方法,返回值变为short类型,如果使用byte[]数组来接受,for循环后的语句不会执行,请高手指教