title: How to get the value of private field using reflection?
body: <p>I ran into a problem that I need to access to private field of a class. For example:</p>
  <pre><code>class MyClass 
  {
      private string someString;
  
      public MyClass( string someStringValue )
      {
          someString = someStringValue;
      }
  }
  </code></pre>
  <p>How can I get the value of someString outside MyClass ?</p>
  <h3>Update:</h3>
  <p>Sorry, I cannot use property here since the the actual production code is protected. I'm a QA/Dev, I need a way to get those private for writing User Acceptance Test. So I cannot change production code. Can you help?</p>