Table of Contents

Interface IJsonLineInfo

Namespace
Newtonsoft.Json
Assembly
Newtonsoft.Json.dll

Provides an interface to enable a class to return line and position information.

public interface IJsonLineInfo

Properties

LineNumber

Gets the current line number.

int LineNumber { get; }

Property Value

int

The current line number or 0 if no line information is available (for example, HasLineInfo returns false).

LinePosition

Gets the current line position.

int LinePosition { get; }

Property Value

int

The current line position or 0 if no line information is available (for example, HasLineInfo returns false).

Methods

HasLineInfo()

Gets a value indicating whether the class can return line information.

bool HasLineInfo()

Returns

bool

true if LineNumber and LinePosition can be provided; otherwise, false.