0
有什麼辦法來初始化動態字符串數組。我們可以初始化動態字符串數組
public class CXmlFileHook
{
string vAppname;
string vClassname;
string vIdmark;
string vExecname;
string [] vApiName;
string vCtor;
public CXmlFileHook()
{
this.vAppname = "Not Set";
this.vIdmark = "Not Set";
this.vClassname = "Not Set";
this.vExecname = "Not Set";
this.vApiName = new string[9] { "Not Set", "Not Set", "Not Set", "Not Set", "Not Set", "Not Set", "Not Set", "Not Set" ,"Not Set"};
this.vCtor = "CXmlFileHook()";
}
現在我想字符串的大小應增加動態,並根據它的大小初始化它的自我是有可能????
您的問題尚不清楚 - 請提供更多詳情。另外,你爲什麼讓它成爲社區維基? – 2010-06-08 06:45:24
什麼是動態字符串數組? '列表'? –
2010-06-08 06:55:42