I need to declare an empty string array and i\'m using this code
string[] arr = new String[0]();
But I get \"method name expected\" error.<
If you must create an empty array you can do this:
string[] arr = new string[0];
If you don't know about the size then You may also use List as well like
List
var valStrings = new List(); // do stuff... string[] arrStrings = valStrings.ToArray();