From 6e4d5af4522ec0cf904efb7df2ffd0d7de15c7d5 Mon Sep 17 00:00:00 2001 From: Steve Harter Date: Wed, 10 Jun 2020 11:21:21 -0500 Subject: [PATCH] Fix Debug.Assert when using ReflectionMemberAccessor --- .../src/System/Text/Json/Serialization/ReflectionMemberAccessor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/ReflectionMemberAccessor.cs b/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/ReflectionMemberAccessor.cs index b8295c5..b0f94e4 100644 --- a/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/ReflectionMemberAccessor.cs +++ b/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/ReflectionMemberAccessor.cs @@ -78,7 +78,7 @@ namespace System.Text.Json.Serialization int parameterCount = constructor.GetParameters().Length; - Debug.Assert(parameterCount < JsonConstants.UnboxedParameterCountThreshold); + Debug.Assert(parameterCount <= JsonConstants.UnboxedParameterCountThreshold); return (arg0, arg1, arg2, arg3) => { -- 2.7.4