Closed erikmav closed 7 months ago
@FreeAndNil Important to closely review ReadOnlyPropertiesDictionary
and PropertiesDictionary
. I selected the most backward compatible option, which is to coerce the this[]
getter to avoid throwing KeyNotFoundException like Dictionary<> would (including a new test for the behavior). Also note that to avoid a double-indirection it would be ideal to change both to structs.
Thanks. I will review on Monday.
Also note that to avoid a double-indirection it would be ideal to change both to structs.
@erikmav can you explain how you would implement this? Maybe as separate issue?
Could be done under another issue. The change is to change from class to struct (or readonly struct, depending) for ReadOnlyPropertiesDictionary, then derive PropertiesDictionary from that as a second struct. I wouldn't do it in this PR either way, it's mainly an optimization.
For #124