title: C# Constructor cannot call itself
body: <p>My problem is I cannot call this keyword for the constructor as shown below.</p>
  
  <pre><code>public UnitofWork(IDbTransaction transcation, Action&lt;UnitofWork&gt; onCommitOrRollback)
      : this(transcation, onCommitOrRollback)
  {
  
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/dLA4d.png" alt="“Constructor cannot call itself” error message"></p>
  
  <p>When using <code>base</code> instead:</p>
  
  <p><img src="https://i.stack.imgur.com/9uvRK.png" alt="“object does not contain a constructor that takes 2 arguments” error message"></p>
  
  <p>Can anyone explain me what is the problem occurred for this instance.</p>
  
  <p>And the project is class library in which I have taken a class named <code>UnitofWork</code>. Here, <code>UnitofWork</code> is a constructor having different parameters passing. These parameters itself will be called again for itself for transaction. </p>