title: Reflection & Parameters in C#
body: <p>I'm writing an application that runs "things" to a schedule.</p>
  
  <p>Idea being that the database contains assembly, method information and also the parameter values. The timer will come along, reflect the method to be run, add the parameters and then execute the method.</p>
  
  <p>Everything is fine except for the parameters.</p>
  
  <p>So, lets say the method accepts an ENUM of CustomerType where CustomerType has two values of CustomerType.Master and CustomerType.Associate.</p>
  
  <p><strong><em>EDIT</em></strong>
  I don't know the type of parameter that will be getting passed in. ENUM used as an example
  <strong><em>END OF EDIT</em></strong></p>
  
  <p>We want to run Method "X" and pass in parameter "CustomerType.Master". In the database, there will be a varchar entry of "CustomerType.Master".</p>
  
  <p>How do I convert the string "CustomerType.Master" into a type of CustomerType with a value of "Master" generically?</p>
  
  <p>Thanks in advance,</p>
  
  <p>Jim</p>