Merge pull request #1125 from JonHanna/null_propogate
Use null-propogation where applicable and useful.
This commit is contained in:
@@ -123,13 +123,7 @@ namespace Newtonsoft.Json.Utilities
|
||||
return m.GetBaseDefinition();
|
||||
}
|
||||
|
||||
m = propertyInfo.GetSetMethod(true);
|
||||
if (m != null)
|
||||
{
|
||||
return m.GetBaseDefinition();
|
||||
}
|
||||
|
||||
return null;
|
||||
return propertyInfo.GetSetMethod(true)?.GetBaseDefinition();
|
||||
}
|
||||
|
||||
public static bool IsPublic(PropertyInfo property)
|
||||
|
||||
Reference in New Issue
Block a user