C5 icon indicating copy to clipboard operation
C5 copied to clipboard

Inconsistent/wrong implementations of Keys property by guarded dictionaries

Open eskesparsoe opened this issue 9 years ago • 1 comments

GuardedDictionary implements the Keys property as 'return dict.Keys;' with a TODO: //TODO: guard with a read-only wrapper? Probably so!

GuardedSortedDictionary implements the Keys property as 'return null;'

The implementations should be fixed, in particular the one in GuardedSortedDictionary.

The implementations should probably wrap the keys of the wrapped dictionary in a GuardedCollection / GuardedSorted.

eskesparsoe avatar Nov 29 '16 10:11 eskesparsoe

Fixed in 3.0.

ondfisk avatar Dec 15 '19 18:12 ondfisk