Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static T Content<T>(this HttpResponseMessage response)
- {
- var content = (ObjectContent<T>) response.Content;
- return (T) content.Value;
- }
- MyContent content = response.Content();
- MyContent content = response.Content<MyClass>();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement