I have some types I want to serialize as xml, but these types have read-only properties like:
public List<Effect> Effects {get; private set;}
but the xml serializer requires these properties to be writable.
Isn't xml serializer using reflection, so in effect can easily set these properties via reflection even though they are read-only?
Is there a way around this because I don't want these types to be editable by people, so the properties must be read-only, but I also want them to be xml serializeable.