using System;
public class Test
{
static void Main()
{
PrintMethod("Hello World");
}
static void PrintMethod(object x)
{
Console.WriteLine("object called");
}
static void PrintMethod<T>(params T[] x)
{
Console.WriteLine("params T method called[]");
}
}
Output: params T method called[]
Can someone help me with the explanation? I want to know why we are not using first printMethod