Simplify lambda to expression (#2009)
This commit is contained in:
committed by
James Newton-King
parent
7cfeeac14a
commit
5712e024b2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user