title: Public fields/properties of a class derived from BindingList<T> wont serialize
body: <p>I'm trying to serialize a class that derives from <strong>BindingList(Floor)</strong>, where <strong>Floor</strong> is a simple class that only contains a property <strong>Floor.Height</strong></p>
  
  <p>Here's a simplified version of my class</p>
  
  <pre><code>[Serializable]
  [XmlRoot(ElementName = "CustomBindingList")]
  public class CustomBindingList:BindingList&lt;Floor&gt;
  {
      [XmlAttribute("publicField")]
      public string publicField;
      private string privateField;
  
      [XmlAttribute("PublicProperty")]
      public string PublicProperty
      {
          get { return privateField; }
          set { privateField = value; }
      }
  }
  </code></pre>
  
  <p>I'll serialize an instance of CustomBindingList using the following code.</p>
  
  <pre><code>XmlSerializer ser = new XmlSerializer(typeof(CustomBindingList));
  StringWriter sw = new StringWriter();
  
  CustomBindingList cLIst = new CustomBindingList();
  
  Floor fl;
  
  fl = new Floor();
  fl.Height = 10;
  cLIst.Add(fl);
  
  fl = new Floor();
  fl.Height = 10;    
  cLIst.Add(fl);
  
  fl = new Floor();
  fl.Height = 10;
  cLIst.Add(fl);
  
  ser.Serialize(sw, cLIst);
  
  string testString = sw.ToString();
  </code></pre>
  
  <p>Yet <strong>testString</strong> above ends getting set to the following XML:</p>
  
  <pre><code>&lt;CustomBindingList xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"&gt;
      &lt;Floor Height="10" /&gt;
      &lt;Floor Height="10" /&gt;
      &lt;Floor Height="10" /&gt;
  &lt;/CustomBindingList&gt;"
  </code></pre>
  
  <p>How do I get "publicField" or "publicProperty to serialize as well?</p>