Skip to main content Skip to complementary content
Close announcements banner

Result Method

Overloads

Result<T>(String, Func<JToken, T>)

Gets custom result from a json response. Wrapper for Value<T>(String, Func<JToken, T>) that assumes the property to deserialize is found in the result part of the response.

Result<T>(String, Func<JToken, T>)

Gets custom result from a json response. Wrapper for Value<T>(String, Func<JToken, T>) that assumes the property to deserialize is found in the result part of the response.

Declaration

      public T Result<T>(string name, Func<JToken, T> deserializer)
    

Parameters

Type Name Description
System.String name

The property of the result entry in the json response to deserialized

System.Func<Newtonsoft.Json.Linq.JToken, T> deserializer

The method to use to translate a token to the target type.

Returns

Type Description
T

The deserialized value.

Type Parameters

Name Description
T

The type to which the json response should be deserialized.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!