Open jzabroski opened 5 years ago
Thanks for reporting!
The bug is that there is no warning when doing expando["name"]
?
I need to look. I don't know what REFL018 is. ExpandoObject explicitly implements the IDictionary interface, so my bad vs correct breakdown of usage is correct.
I'm thinking maybe this is a new ID for checking use of dynamic
.
Why is explicit dictionary access better?
Library Version Info
Confirmed repro on latest on nuget.org repository:
Bad
Correct
I believe this is a bug in REFL018. I believe the issue is due to the dynamic keyword silencing errors, but that is just a hunch - I have done zero debugging so far.