Avoid LINQ expression trees on .NET 6+. (#2902)

This commit is contained in:
Filip Navara
2023-09-21 06:45:16 +08:00
committed by GitHub
parent 0a2e291c0d
commit 01e1759cac
@@ -1412,7 +1412,7 @@ namespace Newtonsoft.Json.Serialization
// warning - this method use to cause errors with Intellitrace. Retest in VS Ultimate after changes
IValueProvider valueProvider;
#if !(PORTABLE40 || PORTABLE || DOTNET || NETSTANDARD2_0 || NET6_0_OR_GREATER)
#if !(PORTABLE40 || PORTABLE || DOTNET || NETSTANDARD2_0)
if (DynamicCodeGeneration)
{
valueProvider = new DynamicValueProvider(member);