title: How can I get the data type of a variable in C#?
body: <p>How can I find out what data type some variable is holding? (e.g. int, string, char, etc.)</p>
  <p>I have something like this now:</p>
  <pre><code>private static void Main()
  {
     var someone = new Person();
     Console.WriteLine(someone.Name.typeOf());
  }
  
  public class Person
  {
      public int Name { get; set; }
  }
  </code></pre>