Saturday, 12 July 2008

Array declare

In C#, the array is declared in the same ay as Java like,

int[] array1;
array1= new int[7];


foreach is "new" in C# to handle arrays.

string is a specific case of array. There are lots of functions developed for it, like trim to remove the whitespace etc.

No comments: