Skip to content

IOrderedDictionary.Insert adds key multiple times #145

@EllieTellie

Description

@EllieTellie

Hi,

I have noticed this method adds the key multiple times. I needed some json to be added to the start of the json document and not at the end.

My fix was simply to add at the start of the function
EnsureDictionary ();
And replace
this[property] = data; with inst_object[property] = data;

Then it works properly. Do you want me to make a pull request? I have a homebrew fork so it's not exactly compatible, but I can make a proper fork and just do this one change.

Regards,
Rene

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