When serializing a class with a property with mixed access XmlSerializer modifiers I get an exception System.InvalidOperationException: Unable to generate a temporary class (result=1).error CS0200: Property or indexer 'Vecozo.Instrumentation.Configuration.InstrumentationConfiguration.Scope' cannot be assigned to -- it is read only