Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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()));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement