public static int[] PopulateArray(int[] array) { foreach (int something in array) { return something; } } }
public static int[] PopulateArray(int[] array) { for (int i = 0; ; i++) { return array; } } }
foreach
public static int[] PopulateArray(int[] array) { for (int i = 0; i < array.Length; i++) { array[i] = i; } return array }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)