title: C#: What does it mean to use a variable like a type?
body: <p>I'm new to C#, coming from a Javascript background (so 'typing' is quite new to me).</p>
  
  <p>What does the warning "... is a variable but is used like a type" mean?</p>
  
  <p>I have the following code within a static function called <code>test</code>:</p>
  
  <pre><code>var activeCell = new ExcelReference(1, 1);
  Type type = typeof(activeCell);
  </code></pre>