Can we Initialize dynamic string array .

Posted by SunilRai86 on Stack Overflow See other posts from Stack Overflow or by SunilRai86
Published on 2010-06-08T06:42:57Z Indexed on 2010/06/08 7:22 UTC
Read the original article Hit count: 185

Filed under:

is there any way to Initialize dynamic string array .


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()";

    }

now i want the size of the string should increases dynamically and according to size it initializes it self is it possible????

© Stack Overflow or respective owner

Related posts about c#3.0