@Thomas Warnaar,
Thinking about this a bit further, you realize there is no real "First" concept on a Dictionary, right? Dictionaries are unordered, so in theory you could get different KeyValuePairs across multiple attempts to get what you consider first.
With that said, the latest MS documentation clearly shows there is no AsEnumerable method exposed by the Dictionary class, so I'm not sure how this was working for you previously. 🤷
♂️ There is a GetEnumerator method though.
If you expect the data entered into the collection to maintain order, I would switch to using the OrderedDictionary class available in the System.Collections.Specialized namespace.
Cheers,
------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------