title: dotnetcore GetTypeInfo() not defined on variables of type object?
body: <p>the code below is a stripped down version of the original code that demonstrates the problem. In dotnetcore (1.0.1) .IsEnum property is moved to System.Reflection. I made changes that all work as expected.  However, the one I cannot make to work is of type object. </p>
  
  <p>Compiler throws this error:
  c:\tmp\netcore\repro\Program.cs(14,17): error CS0103: The name 't' does not exist in the current context</p>
  
  <pre><code>public class Program
  {
      enum Kleur {Red, Blue, Green}
  
      public static void Main(string[] args)
      {
          object myType = Kleur.Green;
          if (myType.GetTypeInfo().IsEnum)
          {
              Console.WriteLine("Yes its an enum");
          }
      }
  }
  </code></pre>
  
  <p>Is there a workaround to test if an object is of type Enum in dotnetcore? Is there a specific reason why there is no extension method for type object (all other types I needed seem to work).</p>