title: How does the value assignment operator work in this case?
body: <p>It helps to note I'm very new to c#. </p>
  
  <p>But consider the following class:</p>
  
  <pre><code>class AllItems
  {
      private readonly Database database;
  
      public AllItems(Database database)
      {
          this.database = database;
      }
  }
  </code></pre>
  
  <p>I have the following questions:</p>
  
  <ol>
  <li><p>In the above example we are assigning <code>private readonly Database database</code>the value which gets passed into <code>AllItems</code> class, is that correct?</p></li>
  <li><p>Would it matter if I swapped <code>this.database = database</code> around, so it looked like <code>database = this.database</code> instead?</p></li>
  <li><p>Where we are saying <code>this.database</code>, does <code>this</code> refer to the database in <code>AllItems(Database database)</code> or does it refer to <code>private readonly Database database</code> ?</p></li>
  </ol>