Skip to content

Commit

Permalink
Switch to a stricter type equality check
Browse files Browse the repository at this point in the history
  • Loading branch information
ccorsano authored and ReubenBond committed Mar 7, 2024
1 parent 78fff92 commit 778cb54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Orleans.Serialization/Serializers/CodecProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ private bool TryGetSurrogateCodec(Type fieldType, Type searchType, out Type surr
foreach (var @interface in converterType.GetInterfaces())
{
if (@interface.IsConstructedGenericType && @interface.GetGenericTypeDefinition() == typeof(IConverter<,>)
&& @interface.GenericTypeArguments[0].IsAssignableFrom(fieldType))
&& @interface.GenericTypeArguments[0] == fieldType)
{
converterInterfaceArgs = @interface.GetGenericArguments();
}
Expand Down

0 comments on commit 778cb54

Please sign in to comment.