Reputation: 429
Can anyone explain to me the difference between the two arrays?
string[] adminUsers = { "user1", "user2","user3" };
VS
var adminUsers = new string[] { "user1", "user2","user3" };
Which is the better way to declare an array?
Upvotes: 0
Views: 66