RosettaCodeData/Task/Array-length/C-sharp/array-length-2.cs

6 lines
228 B
C#

var fruit = new[] { "apple", "orange" };
var fruit = new string[] { "apple", "orange" };
string[] fruit = new[] { "apple", "orange" };
string[] fruit = new string[] { "apple", "orange" };
string[] fruit = { "apple", "orange" };