Having the following class (.Net 3.5):
public class Something
{
public string Text {get; private set;}
private Something()
{
Text = string.Empty;
}
public Something(string text)
{
Text = text;
}
}
This serializes without error but the resulting XML does not include the Text property since it does not have a public setter.
Is there a way (the simpler, the better) to have the XmlSerializer include those properties?