Answer the question
In order to leave comments, you need to log in
How to find out the data type of a variable?
How to find out the data type of a variable?
Answer the question
In order to leave comments, you need to log in
var x = 42;
var xType = x.GetType();
Console.WriteLine(xType.Name); // Int32
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question