Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OrderedList issue #1

Open
bmatzelle opened this issue Mar 14, 2014 · 0 comments
Open

OrderedList issue #1

bmatzelle opened this issue Mar 14, 2014 · 0 comments

Comments

@bmatzelle
Copy link
Owner

After a few tests I found a small bug in your current version in the "OrderedList.cs" file in a public property named "public object this[object key]".
In the "set" branch is the following code line:

table[IndexOf(key)] = new DictionaryEntry(key, value);

but I found out it has to be:

list[IndexOf(key)] = new DictionaryEntry(key, value);

because otherwise it never will assign the new value to the ArrayList if you want to set a key via

keys[key] = some_new_value;
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

No branches or pull requests

1 participant