title: C# boolean are not saved when updated on Object
body: <p><em>---Post updated after to many errors found on first code---</em></p>
  
  <p>I have some trouble with Boolean on Object.
  This is my Chunk class containing a Zone struct :</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  
  public class Test
  {
      public static void Main()
      {
          new Chunk();
      }
  }
  
  public class Chunk {
    List &lt;Zone&gt; zones;
    public Chunk() {
      // Create 3 elements on the List
      this.zones = new List&lt;Zone&gt;();
      this.zones.Add(new Zone(1));
      this.zones.Add(new Zone(2));
      this.zones.Add(new Zone(42));
  
      // Add coord to 2th zones
      this.zones[0].AddCoord(1);
      Console.WriteLine("Count : " + this.zones[0].coords.Count); // -&gt; Count: 1
  
      // Now with bool - NOT WORKING
      this.zones[0].SetBool();
      Console.WriteLine("Bool: " + this.zones[0].isOnChunkBorder ); // -&gt; Bool: False
  
      // Now with bool - WORKING
      this.zones[0] = this.zones[0].SetBoolAndReturnThis();
      Console.WriteLine("Bool: " + this.zones[0].isOnChunkBorder ); // -&gt; Bool: True
    } 
  
    public struct Zone {
      public bool isOnChunkBorder;
      public List&lt;int&gt; coords;
  
      public Zone(int firstCoord) {
        this.coords = new List&lt;int&gt;();
        this.coords.Add(firstCoord);
        this.isOnChunkBorder = false;
      }
      public void AddCoord(int coord) {
        this.coords.Add(coord);
      }
      public void SetBool() {
        this.isOnChunkBorder = true;
      }
      public Zone SetBoolAndReturnThis() {
        this.isOnChunkBorder = true;
        return this;
      }
    }
  }
  </code></pre>
  
  <p>I don't know why struct boolean are not updated when I'm using a simple update, but works fine is Zone is replaced by Class or if the struct is returned ?</p>