Skip to content

Commit

Permalink
Merge pull request #37708 from steveharter/FixAssert
Browse files Browse the repository at this point in the history
Fix Debug.Assert when using ReflectionMemberAccessor
  • Loading branch information
steveharter authored Jun 10, 2020
2 parents 78ed8e8 + 6e4d5af commit fe35942
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public override JsonClassInfo.ParameterizedConstructorDelegate<T, TArg0, TArg1,

int parameterCount = constructor.GetParameters().Length;

Debug.Assert(parameterCount < JsonConstants.UnboxedParameterCountThreshold);
Debug.Assert(parameterCount <= JsonConstants.UnboxedParameterCountThreshold);

return (arg0, arg1, arg2, arg3) =>
{
Expand Down

0 comments on commit fe35942

Please sign in to comment.