Update .NET 6 tests (#2678)
This commit is contained in:
@@ -66,7 +66,7 @@ namespace Newtonsoft.Json.Tests.TestObjects
|
||||
|
||||
public override bool CanConvert(Type objectType)
|
||||
{
|
||||
#if DNXCORE50 && !NETSTANDARD2_0
|
||||
#if DNXCORE50 && !(NETSTANDARD2_0 || NET6_0_OR_GREATER)
|
||||
return Newtonsoft.Json.Utilities.TypeExtensions.IsAssignableFrom(typeof(IList<T>), objectType);
|
||||
#else
|
||||
return typeof(IList<T>).IsAssignableFrom(objectType);
|
||||
|
||||
Reference in New Issue
Block a user