如何把数组设置为空数组,即长度为0
C#
string[] t = allid.Split(':');
t = null;
这样可以使数组的长度为0
VB:
dim t() as string
redim t(5)
Erase t '释放数组,使其长度为0,就象dim t() as String后一样.
如何把数组设置为空数组,即长度为0
C#
string[] t = allid.Split(':');
t = null;
这样可以使数组的长度为0
VB:
dim t() as string
redim t(5)
Erase t '释放数组,使其长度为0,就象dim t() as String后一样.