Skip to content

Fix RedisResult.ToDictionary. #1471

Merged
mgravell merged 1 commit intoStackExchange:masterfrom
nathanscottdaniels:fix_ToDictionary
May 22, 2020
Merged

Fix RedisResult.ToDictionary. #1471
mgravell merged 1 commit intoStackExchange:masterfrom
nathanscottdaniels:fix_ToDictionary

Conversation

@nathanscottdaniels
Copy link
Copy Markdown
Contributor

Previously it would only parse the first half of the array. Also added test coverage for this method.

…t half of the array. Also added test coverage for this method.
@mgravell
Copy link
Copy Markdown
Collaborator

Not at a PC to check, but... From inspection only (not run), the old code should work fine. What error were you seeing?

@nathanscottdaniels
Copy link
Copy Markdown
Contributor Author

nathanscottdaniels commented May 22, 2020

Only one half of the results array was parsed into a dictionary, because the for loop was set to stop when i reached arr.Length/2.

@mgravell
Copy link
Copy Markdown
Collaborator

Ah yes, up on 225; yes, that's not good - thanks for resolving.

@mgravell mgravell merged commit 2f0a652 into StackExchange:master May 22, 2020
@mgravell
Copy link
Copy Markdown
Collaborator

Merging, much appreciated

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.

2 participants