-patch use of JsonContract.OnXXXX to use OnXXXXMethods
This commit is contained in:
@@ -561,10 +561,10 @@ To fix this error either change the JSON to a {1} or change the deserialized typ
|
||||
if (id != null && isTemporaryListReference)
|
||||
throw JsonSerializationException.Create(reader, "Cannot preserve reference to array or readonly list: {0}.".FormatWith(CultureInfo.InvariantCulture, contract.UnderlyingType));
|
||||
|
||||
if (contract.OnSerializing != null && isTemporaryListReference)
|
||||
if (contract.OnSerializingMethods != null && isTemporaryListReference)
|
||||
throw JsonSerializationException.Create(reader, "Cannot call OnSerializing on an array or readonly list: {0}.".FormatWith(CultureInfo.InvariantCulture, contract.UnderlyingType));
|
||||
|
||||
if (contract.OnError != null && isTemporaryListReference)
|
||||
if (contract.OnErrorMethods != null && isTemporaryListReference)
|
||||
throw JsonSerializationException.Create(reader, "Cannot call OnError on an array or readonly list: {0}.".FormatWith(CultureInfo.InvariantCulture, contract.UnderlyingType));
|
||||
|
||||
if (!arrayContract.IsMultidimensionalArray)
|
||||
|
||||
Reference in New Issue
Block a user