Is there a way to view the contents of a reliable dictionary while local debugging. I can't find any property which gives me the contents.
Asked
Active
Viewed 51 times
1 Answers
1
You can't inspect a property, but you could call CreateEnumerableAsync to get an async enumerable.
Sample:
using (var tran = this.stateManager.CreateTransaction())
{
var asyncEnumerable = await yourDictionary.CreateEnumerableAsync(tran);
var asyncEnumerator = asyncEnumerable.GetAsyncEnumerator();
while (await asyncEnumerator.MoveNextAsync(cancelationToken))
{
log.Debug(asyncEnumerator.Current);
}
}

Preben Huybrechts
- 5,853
- 2
- 27
- 63
-
I was hoping there might be anything which I am not aware of. Will loop through and check the elements. Thanks !!! – Sunil Kumar Sep 07 '20 at 06:29