@@ -30,10 +30,10 @@ public class MapEntryYamlConverter(Func<ISerializer> serializerFactory, Func<IDe
30
30
public virtual bool Accepts ( Type type ) => type . IsGenericType && type . GetGenericTypeDefinition ( ) == typeof ( MapEntry < , > ) ;
31
31
32
32
/// <inheritdoc/>
33
- public virtual object ? ReadYaml ( IParser parser , Type type ) => this . CreateGenericConverter ( type ) . ReadYaml ( parser , type ) ;
33
+ public virtual object ? ReadYaml ( IParser parser , Type type , ObjectDeserializer rootDeserializer ) => this . CreateGenericConverter ( type ) . ReadYaml ( parser , type , rootDeserializer ) ;
34
34
35
35
/// <inheritdoc/>
36
- public virtual void WriteYaml ( IEmitter emitter , object ? value , Type type ) => this . CreateGenericConverter ( type ) . WriteYaml ( emitter , value , type ) ;
36
+ public virtual void WriteYaml ( IEmitter emitter , object ? value , Type type , ObjectSerializer rootSerializer ) => this . CreateGenericConverter ( type ) . WriteYaml ( emitter , value , type , rootSerializer ) ;
37
37
38
38
/// <summary>
39
39
/// Creates a new generic <see cref="MapEntryConverter{TKey, TValue}"/>
@@ -56,7 +56,7 @@ class MapEntryConverter<TKey, TValue> (ISerializer serializer, IDeserializer des
56
56
public bool Accepts ( Type type ) => type == typeof ( MapEntry < TKey , TValue > ) ;
57
57
58
58
/// <inheritdoc/>
59
- public virtual object ReadYaml ( IParser parser , Type type )
59
+ public virtual object ReadYaml ( IParser parser , Type type , ObjectDeserializer rootDeserializer )
60
60
{
61
61
parser . Consume < MappingStart > ( ) ;
62
62
var key = deserializer . Deserialize < TKey > ( parser ) ;
@@ -66,7 +66,7 @@ public virtual object ReadYaml(IParser parser, Type type)
66
66
}
67
67
68
68
/// <inheritdoc/>
69
- public virtual void WriteYaml ( IEmitter emitter , object ? value , Type type )
69
+ public virtual void WriteYaml ( IEmitter emitter , object ? value , Type type , ObjectSerializer rootSerializer )
70
70
{
71
71
if ( value == null )
72
72
{
0 commit comments