KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How can I find out what data type some variable is holding? (e.g. int, string, char, etc.) I have something like this now: private static void Main() { var someone = new Person(); Console.WriteLine(someone.Name.typeOf()); } public class Person { public int Name { get; set; } }
Tags (comma-separated)
Save Edits
Cancel