using System;
namespace Recetas.Cap03
{
internal class UsoComprobacionGetType
{
public static void Main()
{
int num1 = 13;
int num2 = 83;
long num3 = 19;
Console.WriteLine ("¿`num1` y `num2` son del mismo tipo?: {0}",
Object.ReferenceEquals(num1.GetType(),num2.GetType()));
Console.WriteLine ("¿`num1` y `num3` son del mismo tipo?: {0}",
Object.ReferenceEquals(num1.GetType(),num3.GetType()));
}
}
}
dXNpbmcgU3lzdGVtOwoKbmFtZXNwYWNlIFJlY2V0YXMuQ2FwMDMKewogICAgaW50ZXJuYWwgY2xhc3MgVXNvQ29tcHJvYmFjaW9uR2V0VHlwZQogICAgewogICAgICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBNYWluKCkKICAgICAgICB7CiAgICAgICAgICAgIGludCBudW0xID0gMTM7CiAgICAgICAgICAgIGludCBudW0yID0gODM7CiAgICAgICAgICAgIGxvbmcgbnVtMyA9IDE5OwogICAgICAgICAgICAKICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUgKCLCv2BudW0xYCB5IGBudW0yYCBzb24gZGVsIG1pc21vIHRpcG8/OiB7MH0iLCAKICAgICAgICAgICAgICAgICAgICAgICBPYmplY3QuUmVmZXJlbmNlRXF1YWxzKG51bTEuR2V0VHlwZSgpLG51bTIuR2V0VHlwZSgpKSk7CiAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lICgiwr9gbnVtMWAgeSBgbnVtM2Agc29uIGRlbCBtaXNtbyB0aXBvPzogezB9IiwgCiAgICAgICAgICAgICAgICAgICAgICAgT2JqZWN0LlJlZmVyZW5jZUVxdWFscyhudW0xLkdldFR5cGUoKSxudW0zLkdldFR5cGUoKSkpOwogICAgICAgIH0KICAgIH0KfQ==