E
Elliot M. Rodriguez
This line raises a precompiler error when Option Strict is turned on:
Dim objRequest As System.Net.HttpWebRequest =
System.Net.HttpWebRequest.Create(m_SearchURL)
The error:
Option Strict On disallows implicit conversions from 'System.Net.WebRequest'
to 'System.Net.HttpWebRequest'.
This is very confusing to me. Why would I need to cast this from WebRequest
if HttpWebRequest is its own object?
Dim objRequest As System.Net.HttpWebRequest =
System.Net.HttpWebRequest.Create(m_SearchURL)
The error:
Option Strict On disallows implicit conversions from 'System.Net.WebRequest'
to 'System.Net.HttpWebRequest'.
This is very confusing to me. Why would I need to cast this from WebRequest
if HttpWebRequest is its own object?