title: XML Serialisation to file
body: <p>I would like to achieve the following :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;StatisticsFunctionsSetting xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;StatisticsFunctions&gt;
      &lt;Visibility&gt;false&lt;/Visibility&gt;
    &lt;/StatisticsFunctions&gt;
  &lt;/StatisticsFunctionsSetting&gt;
  </code></pre>
  
  <p>using the following bool property </p>
  
  <pre><code>[XmlArray("StatisticsFunctions")]
  [XmlArrayItem("Visibility")]
  public bool IsShowChecked
  {
      get
      {
          return this.isShowChecked;
      }
  
      set
      {
          this.isShowChecked = value;
          this.OnPropertyChanged("IsShowChecked");
      }
  }
  </code></pre>
  
  <p>It is crashing on <code>XmlSerializer.Deserialize()</code>. Does the property have to be an array and not bool? I would like to keep the boolean property, so please advice the XML attribute to use.</p>