Add nullable annotation to JToken.ToObject(Type, JsonSerializer)

This commit is contained in:
Andrew Arnott
2021-07-23 22:21:06 +12:00
committed by GitHub
parent e44ab3348f
commit c9e12bc475
+2 -2
View File
@@ -2074,7 +2074,7 @@ namespace Newtonsoft.Json.Linq
/// <param name="objectType">The object type that the token will be deserialized to.</param>
/// <param name="jsonSerializer">The <see cref="JsonSerializer"/> that will be used when creating the object.</param>
/// <returns>The new object created from the JSON value.</returns>
public object? ToObject(Type objectType, JsonSerializer jsonSerializer)
public object? ToObject(Type? objectType, JsonSerializer jsonSerializer)
{
ValidationUtils.ArgumentNotNull(jsonSerializer, nameof(jsonSerializer));
@@ -2755,4 +2755,4 @@ namespace Newtonsoft.Json.Linq
}
}
}
}
}