public static class Simple
static public void ReverseAndPrint<T>(this T[] arr)
Console.Write("{0}, ", item.ToString());
public static void Main()
var intArray = new int[] { 3, 5, 7, 9, 11 };
var stringArray = new string[] { "first", "second", "third" };
var doubleArray = new double[] { 3.567, 7.891, 2.345 };
Console.WriteLine("Printings array of int");
intArray.ReverseAndPrint<int>();
intArray.ReverseAndPrint();
Console.WriteLine("Printings array of string");
stringArray.ReverseAndPrint<string>();
stringArray.ReverseAndPrint();
Console.WriteLine("Printings array of double");
doubleArray.ReverseAndPrint<double>();
doubleArray.ReverseAndPrint();