Forum Xamarin.Forms


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET 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:

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!


Sign In or Register to comment.