aquanat aquanat - 1 month ago 20
C# Question

C# declare empty string array

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.

What's wrong?

Thanks

Answer

Try this

string[] arr = new string[] {};
Comments