-Added JsonReaderException ctor with path, line number, line position

-Added JsonWriterException ctor with path
This commit is contained in:
James Newton-King
2017-02-18 21:49:35 +13:00
parent 7a7027a779
commit b65807bbd2
19 changed files with 68 additions and 52 deletions
@@ -49,13 +49,13 @@ namespace Newtonsoft.Json.Serialization
/// Gets the <see cref="System.Type"/> of the collection items.
/// </summary>
/// <value>The <see cref="System.Type"/> of the collection items.</value>
public Type CollectionItemType { get; private set; }
public Type CollectionItemType { get; }
/// <summary>
/// Gets a value indicating whether the collection type is a multidimensional array.
/// </summary>
/// <value><c>true</c> if the collection type is a multidimensional array; otherwise, <c>false</c>.</value>
public bool IsMultidimensionalArray { get; private set; }
public bool IsMultidimensionalArray { get; }
private readonly Type _genericCollectionDefinitionType;
@@ -63,8 +63,8 @@ namespace Newtonsoft.Json.Serialization
private ObjectConstructor<object> _genericWrapperCreator;
private Func<object> _genericTemporaryCollectionCreator;
internal bool IsArray { get; private set; }
internal bool ShouldCreateWrapper { get; private set; }
internal bool IsArray { get; }
internal bool ShouldCreateWrapper { get; }
internal bool CanDeserialize { get; private set; }
private readonly ConstructorInfo _parameterizedConstructor;