Skip to content

XmlReader Extensions - XmlConvert #97

@7H3LaughingMan

Description

@7H3LaughingMan

.NET provides the XmlConvert class for converting XML strings to proper .NET types, this seems like a better approach for parsing XML files since it already has built-in support for converting "1" or "true" to true and "0" or "false" to false. This would require changing some stuff around with the extension methods but it would prevent the need for trying to read a boolean attribute as an integer and checking the value. Doesn't change much other than readability and would prevent future problems like what happened with parsing attributes for TextObject.

If you are interested in something like this I can work on making a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions