internal URLString SpecialNormalizeUrl() { this.DoDeferredParse(); if (string.Compare(this.m_protocol, "file", StringComparison.OrdinalIgnoreCase) != 0) { return(this); } string @string = this.m_localSite.ToString(); if (@string.Length != 2 || (int)@string[1] != 124 && (int)@string[1] != 58) { return(this); } string s = (string)null; URLString.GetDeviceName(@string, JitHelpers.GetStringHandleOnStack(ref s)); if (s == null) { return(this); } if (s.IndexOf("://", StringComparison.Ordinal) != -1) { URLString urlString = new URLString(s + "/" + this.m_directory.ToString()); urlString.DoDeferredParse(); return(urlString); } URLString urlString1 = new URLString("file://" + s + "/" + this.m_directory.ToString()); urlString1.DoDeferredParse(); return(urlString1); }
internal URLString SpecialNormalizeUrl() { this.DoDeferredParse(); if (string.Compare(this.m_protocol, "file", StringComparison.OrdinalIgnoreCase) != 0) { return(this); } string text = this.m_localSite.ToString(); if (text.Length != 2 || (text[1] != '|' && text[1] != ':')) { return(this); } string text2 = null; URLString.GetDeviceName(text, JitHelpers.GetStringHandleOnStack(ref text2)); if (text2 == null) { return(this); } if (text2.IndexOf("://", StringComparison.Ordinal) != -1) { URLString urlstring = new URLString(text2 + "/" + this.m_directory.ToString()); urlstring.DoDeferredParse(); return(urlstring); } URLString urlstring2 = new URLString("file://" + text2 + "/" + this.m_directory.ToString()); urlstring2.DoDeferredParse(); return(urlstring2); }