c# - Object array dynamic -


I have the following line in my code:

  object [] input = new object [] {"Input 1", "Input 2", "Input 3", "Input 4"};  

I would like to know how to add dynamically (like how many elements will be without arrays) using a loop like this:

  object [] inputs ; Foreign currency (string key.form.cans in request) {input [0] = key; }  

How can I do this?

Thanks in advance.

Best regards

You can not use it:

  list & lt ; Object & gt; List = new list & lt; Object & gt; (); List.Add (key);  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -