title: get property from resource class when both names are given by string at runtime
body: <p>I have a resource class [Resource1] which contains some string properties. Normally, those properties can be accessed by: </p>
  
  <pre><code>string myValue = Resource1.Value1;
  </code></pre>
  
  <p>Now, both the class name (Full) and property name is given (as string) at runtime. So can I please ask how can I update the code to make it work?</p>
  
  <pre><code>string myValue = "Resource1"."Value1"; 
  </code></pre>
  
  <p>I have had a look at the suggested duplication. If I used the codes below:</p>
  
  <pre><code> var type = Type.GetType("Full Name of Resource1");
   var myObject = Activator.CreateInstance(type);
  </code></pre>
  
  <p>The second line will generated a "No parameterless constructor defined for this object." error. </p>
  
  <p>The resource class is auto-generated by ASP.NET (It is defined via Resource1.resc under the Properties. I'm doing this in a MVC project). </p>
  
  <p>Thanks in advance.</p>
  
  <p>Sun</p>