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.<
Try this
string[] arr = new string[] {};
You can try this
string[] arr = {};
If you are using .NET Framework 4.6 and later, they have some new syntax you can use:
using System; // To pick up definition of the Array class. var myArray = Array.Empty<string>();