Skip to content

Commit

Permalink
Merge be77b39 into d920cc4
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerReid committed Nov 22, 2023
2 parents d920cc4 + be77b39 commit c21528e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Tomlyn/Model/Accessors/DictionaryDynamicAccessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,7 @@ public SlowDictionaryAccessor(DynamicModelReadContext context, Type dictionaryTy

public override IEnumerable<KeyValuePair<string, object?>> GetElements(object dictionary)
{
var it = (IEnumerable)dictionary;
var enumerator = (IDictionaryEnumerator)it.GetEnumerator();
var enumerator = ((IDictionary)dictionary).GetEnumerator();
while (enumerator.MoveNext())
{

Expand Down

0 comments on commit c21528e

Please sign in to comment.