AutoWebServiceResponseUtility.GetExpectedResult<TResponse,TProperty> method

Returns the value of the desired property, or throws an exception if the desired property contains the default value.

public static TProperty GetExpectedResult<TResponse, TProperty>(this TResponse response, 
    Func<TResponse, TProperty> getProperty)
    where TResponse : AutoWebServiceResponse
parameter description
TResponse The type of the response.
TProperty The type of the property.
response The AutoWebServiceResponse to read the property from.
getProperty The func that reads the desired property.

Return Value

The value of the property.

See Also