Compile warning Access of shared member will not be evaluated

  • Thread starter Thread starter Rick
  • Start date Start date
R

Rick

I'm in the process of migrating from VS 2003 to VS 2005. One of the compile
warnings I am seeing is:
"Access of shared member, constant member, enum member or nested type
through an instance; qualifying expression will not be evaluated. "

Code sample:
Dim sUri As New Uri(Request.Url.AbsoluteUri.ToString)

Dim sFileUrl As String = sUri.Scheme & sUri.SchemeDelimiter & sUri.Host

Warning is on sUri.SchemeDelimiter

Is schemedelimiter obsolete now? how do I fix this without a hard coded
string of "\\"?

Can someone point me to an article that explains these compile errors?

Thanks in Advance,

Rick
 
Back
Top