Skip to content

Commit

Permalink
Fix internal context methods
Browse files Browse the repository at this point in the history
  • Loading branch information
afxres committed Dec 24, 2023
1 parent 98c03d0 commit 6f901e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/Binary/Internal.Contexts/FallbackCollectionMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ private static DecodePassSpanDelegate<T> GetDecodeDelegate<T, K, V>(Converter<K>
}

[RequiresUnreferencedCode(CommonModule.RequiresUnreferencedCodeMessage)]
private static IConverter GetConverter<T, E>(IGeneratorContext context) where T : IEnumerable<E>
private static SequenceConverter<T> GetConverter<T, E>(IGeneratorContext context) where T : IEnumerable<E>
{
var converter = (Converter<E>)context.GetConverter(typeof(E));
var encode = GetEncodeDelegate<T, E>(converter);
Expand All @@ -248,7 +248,7 @@ private static IConverter GetConverter<T, E>(IGeneratorContext context) where T
}

[RequiresUnreferencedCode(CommonModule.RequiresUnreferencedCodeMessage)]
private static IConverter GetConverter<T, K, V>(IGeneratorContext context) where K : notnull where T : IEnumerable<KeyValuePair<K, V>>
private static SequenceConverter<T> GetConverter<T, K, V>(IGeneratorContext context) where K : notnull where T : IEnumerable<KeyValuePair<K, V>>
{
var init = (Converter<K>)context.GetConverter(typeof(K));
var tail = (Converter<V>)context.GetConverter(typeof(V));
Expand Down

0 comments on commit 6f901e4

Please sign in to comment.