Return Method
Overloads
| Return<T>(Func<JToken, T>) |
Deserializes the return value of an RPC response. Equivalent to calling Result<T>(String, Func<JToken, T>) with parameter "name" set to "qReturn". |
Return<T>(Func<JToken, T>)
Deserializes the return value of an RPC response. Equivalent to calling Result<T>(String, Func<JToken, T>) with parameter "name" set to "qReturn".
Declaration
public T Return<T>(Func<JToken, T> deserializer)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Func<Newtonsoft.Json.Linq.JToken, T> | deserializer |
The method to use to translate a token to the target type. |
Returns
| Type | Description |
|---|---|
| T |
A task that resolves the deserialized value. |
Type Parameters
| Name | Description |
|---|---|
| T |
The type to which the json response should be deserialized. |