If I have a class which has a property that I wish to be serializable
public string Name
{
get { return name; }
set { name = value; } // How can this be private and be used for XML serialization?
}
How can I prevent other classes from using the setter and only allow the built in System.Xml.Serialization serializer to use it?