title: How do I XML Serialize a object without a parameter-less constructor?
body: <p>I am trying to use the Application Settings feature of Visual Studios to easy save the setting of my program. One of the class I am trying to serialize contains a number of DenseMatrix objects from the MathNet.Numerics library. The DenseMatrix class does not have a parameter-less constructor so when calling My.Settings.Save() the serialization would crash. I tried replacing the matrices with a Double(,) but that crashed as well. I then tried writing some code to wrap a DenseMatrix as follows but it also failed I am guessing because all the bases classes have to have parameter-less constructors but I am not sure. Is there another logical way to store the matrices that can be automatically serialized by My.Settings.Save?</p>
  
  <pre><code> &lt;SettingsSerializeAs(SettingsSerializeAs.Xml)&gt;
   Public Class AvtMatrix
      Inherits DenseMatrix
      Public Sub New()
         My.Base.New(3,3)
      End Sub
    End Class
  </code></pre>