c# - Infinitely adding to an array -


is there way of infinitely adding array? far know have initialize , declare array

int myarray = new array[10]; 

what if dont know how many items going go array , want give user option?

you should use list

list<int> mylist = new list<int>(); 

Comments

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

laravel - Undefined property: Illuminate\Pagination\LengthAwarePaginator::$id (View: F:\project\resources\views\admin\carousels\index.blade.php) -