VB.net 的 Redmin数组 转C#?
VB.net
Public Structure pSrc
...
End Structure
Public pSrcS() As pSrc
Public Function ... As pSrc
...
Position = pSrcS.Length
ReDim Preserve pSrcS(Position)
...
End Function
C#
public struct pSrc
{
}
public static pSrcS[] pSrc;
public static pSrc ...
{
...
//对应的Redmin 怎么写?
...
}
------解决方案--------------------public static void Resize <T> (
ref T[] array,
int newSize
)
Array.Resize(ref pSrc, 4);
------解决方案--------------------ArrayList可以TrimToSize()。。。