Search Results for

    Show / Hide Table of Contents

    Method Load

    | Improve this Doc View Source

    Load(String)

    Loads the sections file.

    Declaration
    public static ISectionsData Load(string path)
    Parameters
    Type Name Description
    String path

    The path of the file to load.

    Returns
    Type Description
    ISectionsData

    An instance with the data of each section.

    Exceptions
    Type Condition
    ArgumentNullException

    path is null.

    ParserException

    If the parser find an error during the parsing.

    | Improve this Doc View Source

    Load(String, Encoding)

    Loads the sections file with the specified encoding.

    Declaration
    public static ISectionsData Load(string path, Encoding encoding)
    Parameters
    Type Name Description
    String path

    The path of the file to load.

    Encoding encoding

    The encoding applied to the contents of the file.

    Returns
    Type Description
    ISectionsData

    An instance with the data of each section.

    Exceptions
    Type Condition
    ArgumentNullException

    path or encoding is null.

    ParserException

    If the parser find an error during the parsing.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright 2021 seztion-parser