All files
[pithos-ms-client] / trunk / Libraries / Json40r2 / Source / Src / Newtonsoft.Json / IJsonLineInfo.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5
6 namespace Newtonsoft.Json
7 {
8   /// <summary>
9   /// Provides an interface to enable a class to return line and position information.
10   /// </summary>
11   public interface IJsonLineInfo
12   {
13     /// <summary>
14     /// Gets a value indicating whether the class can return line information.
15     /// </summary>
16     /// <returns>
17     ///         <c>true</c> if LineNumber and LinePosition can be provided; otherwise, <c>false</c>.
18     /// </returns>
19     bool HasLineInfo();
20
21     /// <summary>
22     /// Gets the current line number.
23     /// </summary>
24     /// <value>The current line number or 0 if no line information is available (for example, HasLineInfo returns false).</value>
25     int LineNumber { get; }
26     /// <summary>
27     /// Gets the current line position.
28     /// </summary>
29     /// <value>The current line position or 0 if no line information is available (for example, HasLineInfo returns false).</value>
30     int LinePosition { get; }
31   }
32 }