Forum Xamarin.Forms

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.