title: Call one constructor from another
body: <p>I have two constructors which feed values to readonly fields.</p>
  
  <pre><code>public class Sample
  {
      public Sample(string theIntAsString)
      {
          int i = int.Parse(theIntAsString);
          _intField = i;
      }
  
      public Sample(int theInt) =&gt; _intField = theInt;
      public int IntProperty    =&gt; _intField;
  
      private readonly int _intField;
  }
  </code></pre>
  
  <p>One constructor receives the values directly, and the other does some calculation and obtains the values, then sets the fields.</p>
  
  <p>Now here's the catch:</p>
  
  <ol>
  <li>I don't want to duplicate the
  setting code. In this case, just one
  field is set but of course there may
  well be more than one.</li>
  <li>To make the fields readonly, I need
  to set them from the constructor, so
  I can't "extract" the shared code to
  a utility function.</li>
  <li>I don't know how to call one
  constructor from another.</li>
  </ol>
  
  <p>Any ideas?</p>