Coalesce nulls rather than null test where applicable. (#1150)

This commit is contained in:
Jon Hanna
2017-01-08 15:36:31 +13:00
committed by James Newton-King
parent 2061a8bb9a
commit f4c17aedb2
12 changed files with 33 additions and 34 deletions
+1 -1
View File
@@ -271,7 +271,7 @@ namespace Newtonsoft.Json
/// </summary>
public virtual Type ValueType
{
get { return (_value != null) ? _value.GetType() : null; }
get { return _value?.GetType(); }
}
/// <summary>