Fix allocating empty arrays and more nullable warnings

This commit is contained in:
James Newton-King
2019-08-19 17:38:08 +12:00
parent 6471010c56
commit d75074f30c
16 changed files with 109 additions and 97 deletions
@@ -318,7 +318,7 @@ namespace Newtonsoft.Json.Serialization
if (!HasParameterizedCreatorInternal && underlyingType.Name == FSharpUtils.FSharpListTypeName)
{
FSharpUtils.EnsureInitialized(underlyingType.Assembly());
_parameterizedCreator = FSharpUtils.CreateSeq(CollectionItemType!);
_parameterizedCreator = FSharpUtils.Instance.CreateSeq(CollectionItemType!);
}
}
#endif