title: Why can not reference a type through an expression?
body: <p>The following code seems to be impossible to compile no matter how hard I am trying to cast it :P can somone please tell me what I am doing wrong?</p>
  
  <pre><code>public class LUOverVoltage
  {
      public string Name { get; set; }
      public enum OVType { OVLH, OVLL }
  
      public List&lt;string&gt; PinGroups = new List&lt;string&gt;();
  
      public void Add(string name, OVType type, string Grp)
      {
          this.Name = name;
          this.OVType = type; //Why cannot reference a type through an expression?
  
          PinGroups.Add(Grp);
      }
  }
  </code></pre>