Show / Hide Table of Contents

    Interface IQcParser

    Creates a Parser that is loaded and used by the QuantumParser.

    Namespace: QFSW.QC
    Assembly: QFSW.QC.dll
    Syntax
    public interface IQcParser

    Properties

    Priority

    The priority of this parser to resolve multiple parsers covering the same type.

    Declaration
    int Priority { get; }
    Property Value
    Type Description
    Int32

    Methods

    CanParse(Type)

    If this parser can parse to the incoming type.

    Declaration
    bool CanParse(Type type)
    Parameters
    Type Name Description
    Type type

    The type to test.

    Returns
    Type Description
    Boolean

    If it can be parsed.

    Parse(String, Type, Func<String, Type, Object>)

    Parses the incoming string to the specified type.

    Declaration
    object Parse(string value, Type type, Func<string, Type, object> recursiveParser)
    Parameters
    Type Name Description
    String value

    The incoming string data.

    Type type

    The type to parse the incoming string to.

    Func<String, Type, Object> recursiveParser

    Delegate back to the main parser to allow for recursive parsing of sub elements.

    Returns
    Type Description
    Object

    The parsed object.

    Extension Methods

    ArraySingleExtensions.AsArraySingle<T>(T)
    CollectionExtensions.Yield<T>(T)
    Quantum Console by QFSW
    Back to top