You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to add/remove children to/from a KVObject. I would also like the ability to get the number of children in a KVObject without having to enumerate it.
I suggest having the KVObject class implement the System.Collections.Generic.ICollection<T> and System.Collections.Generic.IList<T> interfaces. This would also enable getting/setting children by index, thus allowing to enumerate via a for loop.
Thank you for considering my suggestion.
The text was updated successfully, but these errors were encountered:
KVObject contains an Add(KVObject) method and an indexer with a set accessor. Correct me if I'm wrong, but doesn't that make it mutable? Why shouldn't removing children be possible?
I would like to be able to add/remove children to/from a
KVObject
. I would also like the ability to get the number of children in aKVObject
without having to enumerate it.I suggest having the
KVObject
class implement theSystem.Collections.Generic.ICollection<T>
andSystem.Collections.Generic.IList<T>
interfaces. This would also enable getting/setting children by index, thus allowing to enumerate via afor
loop.Thank you for considering my suggestion.
The text was updated successfully, but these errors were encountered: