Heads up: (compatibility) rule for dictionary keys IList interface
Just a heads up:
In the (near?) future, dictionary keys are going to support the IList interface.
This would mean that e.g. @($Dictionary.Keys)[0] can be simplified to $Dictionary.Keys[0].
see: #15843 Ordered Dictionary keys are not numerically indexable and linked .Net issue: #56835 OrderedDictionaryKeyValueCollection implement IList
This might lead to (downwards) compatibility issues, therefore a (compatibility) rule for this (future) enhancement could make sense.
Follow up .Net issue: #63537 Implement IList interface for all collection keys
Thanks for calling this out @iRon7, just as an FYI, we are not building on the compatability rules at the moment but may in the future!
Understood. I was also under the impression that it was about to be implemented for multiple collection keys but the initial request implementation appearently only covered the ordered keys, therefore I have created a new request: #63537 Implement IList interface for all collection keys.
Anyways, it will probably take longer than I originally expected before this is being released. I am fine if you like close this case, I am sure that I will remember to reopen it.