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