2 using System.Collections.Generic;
6 namespace Newtonsoft.Json
9 /// Provides an interface to enable a class to return line and position information.
11 public interface IJsonLineInfo
14 /// Gets a value indicating whether the class can return line information.
17 /// <c>true</c> if LineNumber and LinePosition can be provided; otherwise, <c>false</c>.
22 /// Gets the current line number.
24 /// <value>The current line number or 0 if no line information is available (for example, HasLineInfo returns false).</value>
25 int LineNumber { get; }
27 /// Gets the current line position.
29 /// <value>The current line position or 0 if no line information is available (for example, HasLineInfo returns false).</value>
30 int LinePosition { get; }