Skip to content

Commit

Permalink
Fix nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
xoofx committed Jan 25, 2022
1 parent 02ca160 commit 04c3fad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Tomlyn/Model/Accessors/StandardObjectDynamicAccessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ private void Initialize()
}
}

public override IEnumerable<KeyValuePair<string, object>> GetProperties(object obj)
public override IEnumerable<KeyValuePair<string, object?>> GetProperties(object obj)
{
foreach (var prop in _orderedProps)
{
yield return new KeyValuePair<string, object>(prop.Key, prop.Value.GetValue(obj));
yield return new KeyValuePair<string, object?>(prop.Key, prop.Value.GetValue(obj));
}
}

Expand Down

0 comments on commit 04c3fad

Please sign in to comment.