using System;

namespace a
{
	class Program
	{
		public static void Main(string[] args)
		{
			UseParams(1,2,3,4);
			
			int[] myIntArray = { 5, 6, 7, 8, 9 };
			UseParams(myIntArray);
			
			
			object[] myObjArray = { 2, 'b', "test", "again" };
			UseParams(myObjArray);
			
			Console.ReadKey();
		}
		
		public static void UseParams<T>(params T[] arr)
		{
			foreach (var element in arr)
	        {
	            Console.WriteLine(element);
	        }
		}
	}
}