You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using a type that extends IReadOnlyDictionary and we would like to serialize that type. However, that type is serialized as a collection of key value pairs and not as an object.
I tried seeing about implementing an IYamlConverter for ExtendedReadOnlyDictionary but it seemed like I would have to re-implement the dictionary conversion.
Is there an extension point in the library that can solve this for me or is an update to the library required?
Example:
The test below returns the following output:
Assert.AreEqual failed. Expected:<foo: bar
>. Actual:<- Key: foo
Value: bar
>.
The text was updated successfully, but these errors were encountered:
sfwester
changed the title
Classes extending IReadonlyDictionary are not serialized as a yaml mapping
Classes extending IReadOnlyDictionary are not serialized as a yaml mapping
Apr 19, 2021
We are using a type that extends
IReadOnlyDictionary
and we would like to serialize that type. However, that type is serialized as a collection of key value pairs and not as an object.I tried seeing about implementing an
IYamlConverter
forExtendedReadOnlyDictionary
but it seemed like I would have to re-implement the dictionary conversion.Is there an extension point in the library that can solve this for me or is an update to the library required?
Example:
The test below returns the following output:
The text was updated successfully, but these errors were encountered: