Show / Hide Table of Contents

    Method Deserialize

    Deserialize<T>(String)

    Constructs a JSON-RPC message from a provided JSON string.
    Declaration
    public static T Deserialize<T>(string message)where T : JsonRpcMessage
    Parameters
    Type Name Description
    String message The JSON string to deserialise.
    Returns
    Type Description
    T A new JSON-RPC message instance constructed from the provided JSON string.
    Type Parameters
    Name Description
    T The type of the JSON-RPC message to construct.

    Deserialize<T>(String, JsonRpcSerializerSettings)

    Constructs a JSON-RPC message from a provided JSON string.
    Declaration
    public static T Deserialize<T>(string message, JsonRpcSerializerSettings settings)where T : JsonRpcMessage
    Parameters
    Type Name Description
    String message The JSON string to deserialise.
    JsonRpcSerializerSettings settings An optional JsonRpcSerializerSettings instance to control JSON-RPC message deserialisation.
    Returns
    Type Description
    T A new JSON-RPC message instance constructed from the provided JSON string.
    Type Parameters
    Name Description
    T The type of the JSON-RPC message to construct.

    Deserialize<T>(StreamReader)

    Constructs a JSON-RPC message from a provided stream reader.
    Declaration
    public static T Deserialize<T>(StreamReader reader)where T : JsonRpcMessage
    Parameters
    Type Name Description
    StreamReader reader The StreamReader instance to read JSON from.
    Returns
    Type Description
    T A new JSON-RPC message instance constructed from the provided JSON string.
    Type Parameters
    Name Description
    T The type of the JSON-RPC message to construct.

    Deserialize<T>(StreamReader, JsonRpcSerializerSettings)

    Constructs a JSON-RPC message from a provided stream reader.
    Declaration
    public static T Deserialize<T>(StreamReader reader, JsonRpcSerializerSettings settings)where T : JsonRpcMessage
    Parameters
    Type Name Description
    StreamReader reader The StreamReader instance to read JSON from.
    JsonRpcSerializerSettings settings An optional JsonRpcSerializerSettings instance to control JSON-RPC message deserialisation.
    Returns
    Type Description
    T A new JSON-RPC message instance constructed from the provided JSON string.
    Type Parameters
    Name Description
    T The type of the JSON-RPC message to construct.
    Back to top Copyright © 2017-2018, xplo.re IT Services, Michael Maier. All rights reserved.