Skip to content

Fixed an issue where strings would be handled as collection of chars - #654

Merged
Mike-E-angelo merged 1 commit into
ExtendedXmlSerializer:masterfrom
ms0815user:fixes
Jun 23, 2025
Merged

Fixed an issue where strings would be handled as collection of chars#654
Mike-E-angelo merged 1 commit into
ExtendedXmlSerializer:masterfrom
ms0815user:fixes

Conversation

@ms0815user

Copy link
Copy Markdown

When a property of type string is decorated with XmlTextAttribute and when the serializer is configured with EnableXmlText(), then the deserialization would throw a NullReferenceException. The reason is that a ListSerializer is created for string types instead of the MemberSerializer.

This is closely related to issue #192.

when decorated with XmlTextAttribute and when the serializer is configured with EnableXmlText()
@AppVeyorBot

Copy link
Copy Markdown

Build ExtendedXmlSerializer 3.9.4.1-filmpyhk completed (commit 19fe5206fe by @)

Install it by running the following command in Package Manager Console:

Install-Package ExtendedXmlSerializer -Version 3.9.4.1-filmpyhk -Source https://ci.appveyor.com/nuget/extendedxmlserializer-preview

Problems with the above command? You may be running into this known issue here:
NuGet/Home#7189

@Mike-E-angelo

Copy link
Copy Markdown
Member

Fixes #655

@Mike-E-angelo

Copy link
Copy Markdown
Member

Thank you for your contribution @ms0815user! I think this looks OK and will get this deployed today. 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants