-Fixed deserializing with constructor and readonly collection property
This commit is contained in:
@@ -2006,7 +2006,7 @@ namespace Newtonsoft.Json.Serialization
|
||||
{
|
||||
JsonArrayContract propertyArrayContract = (JsonArrayContract)propertyContract;
|
||||
|
||||
if (propertyArrayContract.CanDeserialize)
|
||||
if (propertyArrayContract.CanDeserialize && !propertyArrayContract.IsReadOnlyOrFixedSize)
|
||||
{
|
||||
object createdObjectCollection = property.ValueProvider.GetValue(createdObject);
|
||||
if (createdObjectCollection != null)
|
||||
|
||||
Reference in New Issue
Block a user