Is there any difference between new int[0] and new int[]{}

Viewed 1830

I want to inizialize a new int array.

What are the advantages of:

var myNewArray = new int[]{};

And:

var myNewArray = new int[0];

Which one should I prefer over the other, or is it just a matter of code-style?

1 Answers
Related