From 5712e024b274ced1d387c75639fe18b9ea736a25 Mon Sep 17 00:00:00 2001 From: xp44mm <34696643@qq.com> Date: Sat, 30 Mar 2019 11:39:15 +0800 Subject: [PATCH] Simplify lambda to expression (#2009) --- .../Utilities/LateBoundReflectionDelegateFactory.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Src/Newtonsoft.Json/Utilities/LateBoundReflectionDelegateFactory.cs b/Src/Newtonsoft.Json/Utilities/LateBoundReflectionDelegateFactory.cs index a82150c1..2150e4a3 100644 --- a/Src/Newtonsoft.Json/Utilities/LateBoundReflectionDelegateFactory.cs +++ b/Src/Newtonsoft.Json/Utilities/LateBoundReflectionDelegateFactory.cs @@ -47,11 +47,7 @@ namespace Newtonsoft.Json.Utilities { // don't convert to method group to avoid medium trust issues // https://github.com/JamesNK/Newtonsoft.Json/issues/476 - return a => - { - object[] args = a; - return c.Invoke(args); - }; + return a => c.Invoke(a); } return a => method.Invoke(null, a);