Add nullable annotation to JToken.ToObject(Type, JsonSerializer)
This commit is contained in:
@@ -2074,7 +2074,7 @@ namespace Newtonsoft.Json.Linq
|
|||||||
/// <param name="objectType">The object type that the token will be deserialized to.</param>
|
/// <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>
|
/// <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>
|
/// <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));
|
ValidationUtils.ArgumentNotNull(jsonSerializer, nameof(jsonSerializer));
|
||||||
|
|
||||||
@@ -2755,4 +2755,4 @@ namespace Newtonsoft.Json.Linq
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user