public static void Main()
PruebaObjetos(2.54M, 2.54M);
PruebaObjetos(true, true);
PruebaObjetos(DateTime.Now, DateTime.Now);
PruebaObjetos(null, null);
public static void PruebaObjetos(object obj1, object obj2)
if (obj1 is not null) Console.WriteLine(obj1.GetType()); else Console.WriteLine("Null");
Console.WriteLine(obj1 == obj2);
Console.WriteLine(Object.Equals(obj1, obj2));