Skip to content

Mapping Dictionary is changing Key Case #474

@OFark

Description

@OFark

If I map a dictionary with string keys to another, and I have the TypeAdapterConfig.GlobalSettings.Default.NameMatchingStrategy(NameMatchingStrategy.Flexible); setting, it's converting the dictionary keys to Title case.
I can stop is doing this by using: NameMatchingStrategy.Exact setting instead.

I find this behaviour odd, It's not matching properties, when it's mapping dictionary keys, so why swap the case around in the first place?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions