public void SerializeObject(XSerializerXmlTextWriter writer, object value, ISerializeOptions options) { if (value != null) { var setIsEncryptionEnabledBackToFalse = writer.MaybeSetIsEncryptionEnabledToTrue(_encryptAttribute, options); writer.WriteValue(_valueConverter.GetString(value, options)); if (setIsEncryptionEnabledBackToFalse) { writer.IsEncryptionEnabled = false; } } }
public void SerializeObject(XSerializerXmlTextWriter writer, object value, ISerializeOptions options) { if (value != null) { var setIsEncryptionEnabledBackToFalse = writer.MaybeSetIsEncryptionEnabledToTrue(_encryptAttribute, options); writer.WriteValue(_valueConverter.GetString(value, options)); if (setIsEncryptionEnabledBackToFalse) { writer.IsEncryptionEnabled = false; } } }