Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

HttpWebRequest is missing the GetResponse from the editor but does seem to be invokable

MakaniMakani USMember

This is so weird; I'm trying to invoke the GetResponse method of HttpWebRequest, as documented here:
https://developer.xamarin.com/api/member/System.Net.HttpWebRequest.GetResponse/

But Xamarin Studio in Mac treats it is as if it doesn't exist. But when I use reflection, it works!

WebResponse response = (WebResponse) request.GetType().GetTypeInfo().DeclaredMethods.FirstOrDefault(methodInfo => methodInfo.Name == "GetResponse").Invoke(request, null);

Can you please fix it!

Answers

Sign In or Register to comment.