vb中的ReDim Preserve 如何转成c#???
请问一下这下面的代码怎么转成C#?
代码如下:
For i = 1 To UBound(tErrTermInfo)
ReDim Preserve tTermInfo(1 To i)
tTermInfo(i).strTermCd = tErrTermInfo(i).strTermCd
tTermInfo(i).strDispName = tErrTermInfo(i).strDispName
tTermInfo(i).strTermMAC = tErrTermInfo(i).strTermMAC
tTermInfo(i).strTermName = tErrTermInfo(i).strTermName
tTermInfo(i).strTime = tErrTermInfo(i).strTime
tTermInfo(i).strTermIp = tErrTermInfo(i).strTermIp
Next i