Method FromNumber
FromNumber(Int64)
Creates a new JsonRpcId instance from an integer value.
Declaration
public static JsonRpcId FromNumber(long id)
Parameters
| Type | Name | Description |
|---|---|---|
| Int64 | id | ID to initialise new JsonRpcId instance with. |
Returns
| Type | Description |
|---|---|
| JsonRpcId | New JsonRpcId instance. |
FromNumber(Double)
Creates a new JsonRpcId instance from a fractional number value.
Declaration
public static JsonRpcId FromNumber(double id)
Parameters
| Type | Name | Description |
|---|---|---|
| Double | id | ID to initialise new JsonRpcId instance with. |
Returns
| Type | Description |
|---|---|
| JsonRpcId | New JsonRpcId instance. |