title: Can I serialize a BitArray to XML?
body: <p>I have a business class which I need to serialize to xml. It has a BitArray property.</p>
  
  <p>I have decorated it with <code>[XmlAttribute]</code> but the serialization is failing with</p>
  
  <p><em>To be XML serializable, types which inherit from ICollection must have an implementation of Add(System.Boolean) at all levels of their inheritance hierarchy. System.Collections.BitArray does not implement Add(System.Boolean).</em></p>
  
  <p>I am not sure whether its possible to serialize to xml? </p>
  
  <p>If not what would be an efficient means of serializing the BitArray</p>
  
  <p>Thanks for looking</p>