-Formatting
This commit is contained in:
@@ -471,7 +471,7 @@ namespace Newtonsoft.Json.Linq
|
||||
|
||||
private static string GetType(JToken token)
|
||||
{
|
||||
ValidationUtils.ArgumentNotNull(token, "token");
|
||||
ValidationUtils.ArgumentNotNull(token, nameof(token));
|
||||
|
||||
if (token is JProperty)
|
||||
{
|
||||
@@ -1888,8 +1888,8 @@ namespace Newtonsoft.Json.Linq
|
||||
|
||||
internal static JToken FromObjectInternal(object o, JsonSerializer jsonSerializer)
|
||||
{
|
||||
ValidationUtils.ArgumentNotNull(o, "o");
|
||||
ValidationUtils.ArgumentNotNull(jsonSerializer, "jsonSerializer");
|
||||
ValidationUtils.ArgumentNotNull(o, nameof(o));
|
||||
ValidationUtils.ArgumentNotNull(jsonSerializer, nameof(jsonSerializer));
|
||||
|
||||
JToken token;
|
||||
using (JTokenWriter jsonWriter = new JTokenWriter())
|
||||
@@ -2074,7 +2074,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// <returns>The new object created from the JSON value.</returns>
|
||||
public object ToObject(Type objectType, JsonSerializer jsonSerializer)
|
||||
{
|
||||
ValidationUtils.ArgumentNotNull(jsonSerializer, "jsonSerializer");
|
||||
ValidationUtils.ArgumentNotNull(jsonSerializer, nameof(jsonSerializer));
|
||||
|
||||
using (JTokenReader jsonReader = new JTokenReader(this))
|
||||
{
|
||||
@@ -2109,7 +2109,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// </returns>
|
||||
public static JToken ReadFrom(JsonReader reader, JsonLoadSettings settings)
|
||||
{
|
||||
ValidationUtils.ArgumentNotNull(reader, "reader");
|
||||
ValidationUtils.ArgumentNotNull(reader, nameof(reader));
|
||||
|
||||
if (reader.TokenType == JsonToken.None)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user