Merge pull request #1125 from JonHanna/null_propogate

Use null-propogation where applicable and useful.
This commit is contained in:
James Newton-King
2017-01-05 11:15:49 +13:00
committed by GitHub
19 changed files with 67 additions and 123 deletions
@@ -377,11 +377,11 @@ namespace Newtonsoft.Json.Serialization
// member attribute converter
converter = memberConverter;
}
else if (containerProperty != null && containerProperty.ItemConverter != null)
else if (containerProperty?.ItemConverter != null)
{
converter = containerProperty.ItemConverter;
}
else if (containerContract != null && containerContract.ItemConverter != null)
else if (containerContract?.ItemConverter != null)
{
converter = containerContract.ItemConverter;
}