Esempio n. 1
0
 //Task 3.3
 public static void DynamicArrayAction()
 {
     Console.WriteLine("\nTask 3.3 and 3.4 DynamicArray:");
     int[] newArr = new int[] { 1, 2, 3, 4, 4, 5, 6 };
     DynamicArray.DynamicArray <int> myArr = new DynamicArray.DynamicArray <int>(newArr);
     foreach (var item in myArr)
     {
         Console.WriteLine(item);
     }
     Console.WriteLine("Length: {0}, Capacity {1};", myArr.Length, myArr.Capacity);
 }