Show / Hide Table of Contents

    Method FromObject

    FromObject(Object)

    Creates a new JsonRpcId instance from any compatible type.
    Declaration
    public static JsonRpcId FromObject(object id)
    Parameters
    Type Name Description
    Object id ID value to initialise instance with. The following types are supported:
    • String objects,
    • integer types (SByte, Byte, Int16, UInt16, Int32, UInt32, Int64, UInt64),
    • floating-point types (Single, Double),
    • the null reference.
    Returns
    Type Description
    JsonRpcId New JsonRpcId instance on success, otherwise an exception is thrown.
    Exceptions
    Type Condition
    ArgumentException Provided argument id is of an unsupported type.
    Back to top Copyright © 2017-2018, xplo.re IT Services, Michael Maier. All rights reserved.