Show / Hide Table of Contents

    Interface IJsonLineInfo

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

    Namespace: Bayat.Json
    Assembly: Bayat.Json.Runtime.dll
    Syntax
    public interface IJsonLineInfo

    Properties

    | Improve this Doc View Source

    LineNumber

    Gets the current line number.

    Declaration
    int LineNumber { get; }
    Property Value
    Type Description
    System.Int32

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

    | Improve this Doc View Source

    LinePosition

    Gets the current line position.

    Declaration
    int LinePosition { get; }
    Property Value
    Type Description
    System.Int32

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

    Methods

    | Improve this Doc View Source

    HasLineInfo()

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

    Declaration
    bool HasLineInfo()
    Returns
    Type Description
    System.Boolean

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

    • Improve this Doc
    • View Source
    • 0 Comments