using System;
public class Program
{
public static void AcceptAnyType(object x) {
Console.WriteLine($"The type of the argument is: {x.GetType()}");
}
public static void Main()
{
AcceptAnyType(384); // Integer
AcceptAnyType("ABCD"); // String
AcceptAnyType(3.14); // Double
}
}
/*
run:
The type of the argument is: System.Int32
The type of the argument is: System.String
The type of the argument is: System.Double
*/