c# how to check type of object code example
Example 1: how to find the type of a object c#
use the "is" keyword
Example 2: how to check type c#
using System;
class MainClass {
public static void Main (string[] args) {
string akuma = "Messatsu";
Console.WriteLine(num.GetType());
Console.WriteLine(num);
}
}
// string
// Messatsu