Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[C] avoid exception on overriden indexer #2131

Merged
merged 1 commit into from Mar 21, 2018
Merged

Conversation

StephaneDelcroix
Copy link
Member

@StephaneDelcroix StephaneDelcroix commented Mar 19, 2018

Description of Change

Binding to a Newtonsoft.Json.Linq.JObject with an indexer throws an
AmbiguousMatchException (because the Indexer is overriden). This fixes
the property finding code so it doesn't throw, but returns the most
derived indexer.

PR Checklist

  • Has tests (if omitted, state reason in description)
  • Rebased on top of master at time of PR
  • Changes adhere to coding standard
  • Consolidate commits as makes sense

Binding to a Newtonsoft.Json.Linq.JObject with an indexer throws an
AmbiguousMatchException (because the Indexer is overriden). This fixes
the property finding code so it doesn't thorw, but returns the moste
derived indexer.
@StephaneDelcroix StephaneDelcroix changed the base branch from master to 3.0.0 March 19, 2018 13:35
@StephaneDelcroix StephaneDelcroix added this to Ready in v3.0.0 via automation Mar 19, 2018
@samhouts samhouts moved this from Ready to In Review in v3.0.0 Mar 20, 2018
@StephaneDelcroix
Copy link
Member Author

not sure it's critical...

@StephaneDelcroix StephaneDelcroix merged commit b7d1b6e into 3.0.0 Mar 21, 2018
v3.0.0 automation moved this from In Review to Done Mar 21, 2018
@StephaneDelcroix StephaneDelcroix deleted the fix_ambiguousmatch branch March 21, 2018 13:25
@samhouts samhouts added this to the 3.0.0 milestone May 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
v3.0.0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants