Merge pull request #1125 from JonHanna/null_propogate
Use null-propogation where applicable and useful.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user