class Program { static void Main(string[] args) { int[] intArray = { 1, 2, 3, 4, 5, 6 }; PrintArray(intArray); } static void PrintArray <E> (E[] inputArray) { foreach(E element in inputArray) { Console.WriteLine(element + " "); } Console.WriteLine("\n"); } }Then afterwards is says you can call the generic method with an explicit type declaration:
PrintArray<int>(intArray);What is doesn't say it what you gain from this. Why would you call it this way?