-Refactor to expression body properties

This commit is contained in:
James Newton-King
2017-10-23 09:49:12 +13:00
parent ef18269626
commit 9932155295
50 changed files with 285 additions and 586 deletions
@@ -91,7 +91,7 @@ namespace Newtonsoft.Json.Serialization
/// <value>The function used to create the object.</value>
public ObjectConstructor<object> OverrideCreator
{
get { return _overrideCreator; }
get => _overrideCreator;
set
{
_overrideCreator = value;
@@ -106,10 +106,7 @@ namespace Newtonsoft.Json.Serialization
/// <value><c>true</c> if the creator has a parameter with the collection values; otherwise, <c>false</c>.</value>
public bool HasParameterizedCreator { get; set; }
internal bool HasParameterizedCreatorInternal
{
get { return (HasParameterizedCreator || _parameterizedCreator != null || _parameterizedConstructor != null); }
}
internal bool HasParameterizedCreatorInternal => (HasParameterizedCreator || _parameterizedCreator != null || _parameterizedConstructor != null);
/// <summary>
/// Initializes a new instance of the <see cref="JsonArrayContract"/> class.